build(deps-dev): Bump @commitlint/cli from 17.5.1 to 17.6.6 #118
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
# The branches below must be a subset of the branches above. | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.node-version' | |
cache: 'npm' | |
registry-url: 'https://npm.pkg.github.com' | |
# Skip post-install scripts here, as a malicious script could steal NODE_AUTH_TOKEN. | |
- run: npm ci --ignore-scripts | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: npx patch-package | |
- run: npm run verify | |
- run: npm run build | |
- id: artifact-name | |
name: Generate xpi artifact name | |
uses: actions/github-script@v6 | |
with: | |
result-encoding: string | |
script: return `notero-${require('./gen/version')}` | |
- name: Upload xpi artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.artifact-name.outputs.result }} | |
path: build/ | |
- name: Comment PR build | |
if: github.event_name == 'pull_request' | |
uses: mshick/add-pr-comment@v2 | |
with: | |
message: | | |
## 🤖 Build Bot | |
**✅ Successful build** | |
⬇️ Download: [${{ steps.artifact-name.outputs.result }}](https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/${{ steps.artifact-name.outputs.result }}.zip) |