ci: upgrade release script actions versions #5
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 | |
env: | |
HUSKY: 0 | |
jobs: | |
release: | |
permissions: | |
contents: write # for release publishing | |
name: Release | |
env: | |
commitmsg: ${{ github.event.head_commit.message }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'yarn' | |
- name: Install dependencies Node | |
run: yarn install --frozen-lockfile --non-interactive | |
- run: yarn build | |
- name: Release Node | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release |