v5.6.2 #272
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: 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@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
registry-url: "https://registry.npmjs.org/" | |
cache: npm | |
- run: npm ci | |
- run: npm test | |
env: | |
FORCE_COLOR: 3 | |
- 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 - |