Skip to content

Commit bc367a7

Browse files
committed
NPM Publish workflow
1 parent 66e3963 commit bc367a7

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: publish
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+*'
6+
jobs:
7+
types:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: 16
14+
registry-url: 'https://registry.npmjs.org'
15+
- run: npm install --save-dev
16+
- run: npm publish --workspace packages/google-analytics-embed-types
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
19+
reactlib:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v1
24+
with:
25+
node-version: 16
26+
registry-url: 'https://registry.npmjs.org'
27+
- run: npm install --save-dev
28+
- run: npm run reactlib:build:prod
29+
- run: npm publish --workspace packages/google-analytics-embed-react
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)