-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (38 loc) · 1.02 KB
/
npm-publish.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
name: NPM Publish
env:
SOLANA_CLI_VERSION: 1.18.15
NODE_VERSION: 18.12.1
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v0.0.1
jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: solana-programs
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup/
- uses: ./.github/actions/setup-anchor/
with:
node-version: ${{ env.NODE_VERSION }}
- name: re create .npmrc file
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: ./.github/actions/build-anchor/
with:
testing: false
devnet: false
- uses: ./.github/actions/setup-ts/
- name: Lerna Publish
run: yarn release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}