Merge pull request #12 from flayks/chore/update-deps #28
This file contains hidden or 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
| name: Releases | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Release | |
| - name: Create release | |
| uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.GH_TOKEN }} | |
| release-type: node | |
| # Publication steps | |
| - uses: actions/checkout@v4 | |
| if: ${{ steps.release.outputs.release_created }} | |
| - uses: actions/setup-node@v4 | |
| if: ${{ steps.release.outputs.release_created }} | |
| with: | |
| node-version: 20 | |
| registry-url: 'https://registry.npmjs.org' | |
| # Publish | |
| - run: npm ci | |
| if: ${{ steps.release.outputs.release_created }} | |
| - run: npm publish | |
| if: ${{ steps.release.outputs.release_created }} | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |