This repository has been archived by the owner on Nov 11, 2024. It is now read-only.
fix: archive repository #15
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" | |
on: | |
push: | |
branches: [master] | |
jobs: | |
release: | |
runs-on: "ubuntu-latest" | |
permissions: | |
contents: "write" | |
issues: "write" | |
pull-requests: "write" | |
id-token: "write" | |
steps: | |
- uses: "actions/[email protected]" | |
- name: "Setup Node.js" | |
uses: "actions/[email protected]" | |
with: | |
node-version: "20.x" | |
cache: "npm" | |
- name: "Install dependencies" | |
run: "npm clean-install" | |
- name: "Build Package" | |
run: "npm run build" | |
- run: "npm run build:typescript" | |
- name: "Verify the integrity of provenance attestations and registry signatures for installed dependencies" | |
run: "npm audit signatures" | |
- name: "Release" | |
run: "npm run release" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |