release #43
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: release | |
on: [workflow_dispatch] | |
jobs: | |
release: | |
name: Semantic Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: 'Checkout sources' | |
uses: actions/checkout@v4 | |
- name: 'Setup NodeJS' | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: 'Install dependencies' | |
run: yarn install | |
- name: 'Run unit-tests' | |
run: yarn test | |
- name: 'Build GitHub Actions distribution' | |
run: yarn action:dist | |
- name: 'Commit GitHub Actions distribution' | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Build by GitHub Actions | |
file_pattern: action-dist/index.js | |
- name: 'Semantic Release' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx semantic-release |