Merge pull request #177 from web-mech/next #2
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
name: Release | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
publish-gpr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- run: yarn install | |
- run: yarn global add standard-version | |
- run: git config --global user.email "action@github.com" | |
- run: git config --global user.name "GitHub Action" | |
- uses: EndBug/add-and-commit@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: yarn release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |