Skip to content

Commit 2c6ed71

Browse files
asynclizcopybara-github
authored andcommitted
chore: setup automatic publishing
PiperOrigin-RevId: 500805392
1 parent d3b517a commit 2c6ed71

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "*"
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
cache: npm
20+
- uses: google/wireit@setup-github-actions-caching/v1
21+
22+
- run: npm ci
23+
- run: npm run build
24+
env:
25+
WIREIT_FAILURES: continue
26+
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: 18
30+
registry-url: 'https://wombat-dressing-room.appspot.com/'
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 commit comments

Comments
 (0)