Skip to content

Commit b990d92

Browse files
committed
ci: add release-please
1 parent 2bb8800 commit b990d92

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: publish-on-tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
with:
18+
fetch-depth: 2
19+
- name: Publish
20+
env:
21+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
22+
TAG_NAME: ${{github.ref_name}}
23+
run: |
24+
npm config set registry 'https://wombat-dressing-room.appspot.com/'
25+
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
26+
npm publish --provenance --access public

0 commit comments

Comments
 (0)