forked from dvanoni/notero
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.11 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Release
on:
push:
tags: ['v*.*.*']
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: read
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: release-xpi
name: Release xpi
uses: softprops/action-gh-release@v1
with:
files: xpi/*.xpi
generate_release_notes: true
- name: Generate update manifest
run: npm run generateUpdateManifest -- ${{ fromJSON(steps.release-xpi.outputs.assets)[0].browser_download_url }}
- name: Publish update manifest
uses: softprops/action-gh-release@v1
with:
tag_name: release
files: gen/update*