Skip to content

Commit 8492b65

Browse files
committed
Merge branch 'main' of github.com:ton-org/ton-core
2 parents 8fdbabb + a0c7b48 commit 8492b65

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

.github/workflows/publish.yml

+23-19
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,31 @@ on:
22
push:
33
branches:
44
- main
5-
name: Build, Test and Publish
5+
name: Publish to NPM
66
jobs:
77
publish:
88
name: Publish
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- name: Use Node.js 18
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: '18.x'
16-
always-auth: true
17-
- name: Install Yarn
18-
run: npm install -g yarn
19-
- name: Install dependencies
20-
run: yarn
21-
- name: Build
22-
run: yarn build
23-
- name: Test
24-
run: yarn test
25-
- name: Publish
26-
env:
27-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
28-
run: yarn publish --access public
11+
- uses: actions/checkout@v3
12+
- name: Use Node.js 18
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: '18.x'
16+
always-auth: true
17+
- name: Install Yarn
18+
run: npm install -g yarn
19+
- name: Install dependencies
20+
run: yarn
21+
- name: Build
22+
run: yarn build
23+
- name: Setup .yarnrc.yml
24+
run: |
25+
yarn config set npmAuthToken $NPM_AUTH_TOKEN
26+
yarn config set npmAlwaysAuth true
27+
env:
28+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
29+
- name: Publish
30+
env:
31+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
32+
run: yarn npm publish --access public

0 commit comments

Comments
 (0)