forked from mdn/browser-compat-data
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 898 Bytes
/
release.yml
File metadata and controls
36 lines (31 loc) · 898 Bytes
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
name: Release package
on:
release:
types:
- published
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
issues: write
jobs:
build:
name: Publish release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org/"
cache: npm
- run: npm ci
- run: npm test
- run: npm run build
- run: npm publish build/ --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Add JSON as a release asset
run: gh release upload ${GITHUB_REF#refs/*/} build/data.json
- name: Publish stats for all data (#3555)
run: npm run --silent stats | gh issue comment https://github.com/mdn/browser-compat-data/issues/3555 --body-file -