-
Notifications
You must be signed in to change notification settings - Fork 126
37 lines (36 loc) · 1.14 KB
/
release.yaml
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
37
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 }}