Skip to content

Commit

Permalink
build: add release job with release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
TomKopp committed Jan 30, 2024
1 parent 54dd92f commit 1d8a9b1
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,27 @@ jobs:
name: Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm test --workspaces --if-present
- run: npm test --workspaces

release:
needs: validate
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/release-please-action@v4
with:
# Use GitHub Actions secret with a Personal Access Token as all
# resources created by release-please (release tag or release pull
# request) will not trigger future GitHub actions workflows, and
# workflows normally triggered by release.created events will also
# not run when used with the default GITHUB_TOKEN.
token: ${{ secrets.Automation }}

0 comments on commit 1d8a9b1

Please sign in to comment.