Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Enable release-please workflow for release, fixes #636 #725

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Notes from broofa on how to use this action:
#
# * To reset a release PR, close the PR in github and delete the release branch created by

on:
workflow_dispatch:
push:
branches:
- main
- release-please

name: Release PR

jobs:
release-pr:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: uuid-release-test
# pre-release suffix for version string. E.g. "alpha" or "beta"
prerelease: true
default-branch: release-please

- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}

- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}

- run: npm ci
if: ${{ steps.release.outputs.release_created }}

- run: npm test
if: ${{ steps.release.outputs.release_created }}

#
# On release, checkout and run tests before publishing...
#
# TODO: Uncomment this once we're actually ready to roll a new release --RWK

# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# if: ${{ steps.release.outputs.release_created }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uuid",
"version": "9.0.0",
"version": "9.0.0-releasetest.0",
"description": "RFC4122 (v1, v4, and v5) UUIDs",
"funding": [
"https://github.com/sponsors/broofa",
Expand Down