Merge pull request #953 from shawshankkumar/master #370
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: | |
- master | |
- next | |
- rc | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Release / Node ${{ matrix.node }} | |
strategy: | |
matrix: | |
node: ['20'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: | | |
npm ci | |
npm run build | |
- name: Create a release | |
run: npx semantic-release@^18.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |