-
-
Notifications
You must be signed in to change notification settings - Fork 19
50 lines (40 loc) · 1.24 KB
/
publish.yml
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
name: Release
on:
push:
branches: [ main ]
jobs:
Build:
if: "${{ contains(github.event.head_commit.message, 'chore(release): publish') == false }}"
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.PLUGINS_NPM_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
token: ${{ secrets.CI_PAT_TOKEN }}
fetch-depth: 0
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
- name: Setup git config
run: |
git config --global user.name "standardci"
git config --global user.email "[email protected]"
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.CI_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.CI_GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Install Dependencies
run: yarn install
- name: Build plugins
run: yarn build
- name: Package Plugins
run: yarn workspace @standardnotes/community-cdn compile
- name: Release
run: yarn run release
- name: Publish
run: yarn run publish