-
Notifications
You must be signed in to change notification settings - Fork 44
30 lines (28 loc) · 847 Bytes
/
cd-core.yaml
File metadata and controls
30 lines (28 loc) · 847 Bytes
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
name: Core NPM publish
on:
release:
types: [published]
jobs:
core-publish:
name: Core NPM Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Build core package
run: yarn workspace @human-protocol/core build
- name: Change core version
uses: jossef/action-set-json-field@v2
with:
file: ./packages/core/package.json
field: version
value: ${{ github.event.release.tag_name }}
- name: Publish package
run: yarn workspace @human-protocol/core npm publish --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}