-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (47 loc) · 1.53 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
54
55
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: '16'
- run: yarn install --frozen-lockfile
- 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 }}
- name: Upload documentation via ftp
uses: SamKirkland/FTP-Deploy-Action@4.3.0
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: "./dist/docs/"
server-dir: "./sage/docs/"