This repository was archived by the owner on Jan 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (65 loc) · 1.75 KB
/
publish-zeal-pkg.yml
File metadata and controls
77 lines (65 loc) · 1.75 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: 'Pubish Zeal Package'
on:
push:
branches:
- master
paths-ignore:
- 'package.json'
- 'yarn.lock'
jobs:
bump-package-version:
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
shell: bash
working-directory: ./
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
token: ${{ secrets.DEEPSOURCE_BOT_TOKEN }}
- name: Import GPG key
id: import_gpg_sign_commits
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.DS_BOT_GPG_KEY }}
passphrase: ${{ secrets.DS_BOT_GPG_PASSPHRASE }}
git-user-signingkey: true
git-commit-gpgsign: true
- name: Bump Version
run: |
git config --global user.email "bot@deepsource.io"
git config --global user.name "deepsourcebot"
npm version patch
git push
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Install Yarn
run: yarn
- name: Test
run: yarn test:unit
publish-zeal-package:
runs-on: ubuntu-latest
needs: bump-package-version
defaults:
run:
shell: bash
working-directory: ./
steps:
- name: Checkout Code
uses: actions/checkout@v2
- run: git pull origin master
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: https://registry.npmjs.org
- name: Install Packages
run: yarn
- name: Build Library Icons
run: yarn build-lib-icons
- name: Publish Zeal Package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}