-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding release plz Signed-off-by: Todd Baert <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
name: Run Release Please | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
|
||
# Release-please creates a PR that tracks all changes | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
with: | ||
command: manifest | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
default-branch: main | ||
|
||
# The logic below handles the npm publication: | ||
- name: Checkout Repository | ||
if: ${{ steps.release.outputs.releases_created }} | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
if: ${{ steps.release.outputs.releases_created }} | ||
with: | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Build Packages | ||
if: ${{ steps.release.outputs.releases_created }} | ||
run: | | ||
npm ci | ||
npm run build | ||
# Release Please has already incremented versions and published tags, so we just | ||
# need to publish all unpublished versions to NPM here | ||
# Our scripts only publish versions that do not already exist. | ||
- name: Publish to NPM | ||
if: ${{ steps.release.outputs.releases_created }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
run: npm run publish |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"bootstrap-sha": "9ec6555fb0a9144a70020e52d8c718c8424db225", | ||
"packages": { | ||
".": { | ||
"releaseType": "node", | ||
"prerelease": false, | ||
"bumpMinorPreMajor": false, | ||
"bumpPatchForMinorPreMajor": false, | ||
"changelogPath": "CHANGELOG.md", | ||
"versioning": "default" | ||
} | ||
} | ||
} |