Skip to content

ci: add check-approver workflow (#209) #128

ci: add check-approver workflow (#209)

ci: add check-approver workflow (#209) #128

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: read # for checkout
jobs:
lint-and-test:
uses: ./.github/workflows/lint-and-test.yml
release:
name: Release
runs-on: large-8-core-32gb-22-04
needs: [lint-and-test]
environment: deploy #!! DO NOT CHANGE THIS LINE !! #
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0 # download tags, see https://github.com/actions/checkout/issues/100
- run: git config --global --add safe.directory $(realpath .)
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Semantic Release
run: |
npm install semantic-release
npx semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}