fix: remove local postbuild script #3
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: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }} | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Setup 7zip | |
run: sudo apt-get update && sudo apt-get install -y p7zip-full | |
- name: Install dependencies | |
run: npm install | |
- name: Fix auto-fixable eslint issues | |
run: npm run eslint -- --fix | |
- name: Update the ToC in the README.md | |
run: npx markdown-toc README.md -i | |
- name: Semantic release | |
uses: codfish/semantic-release-action@v3 | |
with: | |
additional-packages: | | |
['@semantic-release/git', '@semantic-release/changelog', '@semantic-release/exec'] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |