ci: 👷 Create release notes preview in PR #40
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 plugin version | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master, main, beta] | |
permissions: | |
contents: read # for checkout | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
issues: write # to be able to comment on released issues | |
pull-requests: write # to be able to comment on released pull requests | |
id-token: write # to enable use of OIDC for npm provenance | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Install dependencies | |
run: npm clean-install | |
env: | |
HUSKY: 0 | |
- name: Audit dependencies | |
run: | | |
npm audit --audit-level=high --production | |
npm audit signatures | |
continue-on-error: true # Don't fail the build, but report issues | |
- name: Build plugin | |
run: npm run build | |
- name: Release update | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx semantic-release |