-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (45 loc) · 1.4 KB
/
semantic-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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Semantic Release
on:
push:
branches:
- master
- beta
jobs:
# Builds token library from current data/tokens.json file and releases it.
release:
name: Build and release library
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: yarn install --frozen-lockfile
- name: Append .env
run: |
echo "
FIGMA_ACCESS_TOKEN=${{ secrets.FIGMA_ACCESS_TOKEN }}
FIGMA_FILE_ID=${{ secrets.FIGMA_FILE_ID }}
" >> .env
- name: Build
run: yarn run build
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Release package to public NPM registry
run: npx semantic-release@19 --debug
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_COMMITTER_NAME: Sage Carbon
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}