Skip to content

chore(release): prepare for v3.0.0 #15

chore(release): prepare for v3.0.0

chore(release): prepare for v3.0.0 #15

Workflow file for this run

name: Release
on:
push:
tags: 'v*.*.*'
permissions:
contents: read
jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: npm
node-version-file: .node-version
- run: npm ci
- run: npm run prepack
- run: git diff --exit-code dist
release:
needs: check-dist
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
- run: npm pack --ignore-scripts
- name: Generate release notes
run: >-
git for-each-ref "${GITHUB_REF}" --format='%(contents:body)' |
tee RELEASENOTES.md
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
run: >-
gh release create -F RELEASENOTES.md -- "${GITHUB_REF_NAME}" *.tgz