Skip to content

Commit 7e5090e

Browse files
Benjamin E. Coegrant
andauthored
build: configure for release-please (#298)
* ci: add release please Signed-off-by: Grant Timmerman <[email protected]> * ci: rename npm token secret Signed-off-by: Grant Timmerman <[email protected]> * ci: compile, not build Signed-off-by: Grant Timmerman <[email protected]> * build(release): configure release please * build: correct job Co-authored-by: Grant Timmerman <[email protected]>
1 parent 58dac78 commit 7e5090e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/release-please.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
releaseType: node
2+
handleGHRelease: true

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
release:
3+
types: [created]
4+
name: publish
5+
jobs:
6+
publish-to-npm:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 12
13+
registry-url: 'https://wombat-dressing-room.appspot.com'
14+
- id: publish
15+
env:
16+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
17+
run: |
18+
npm install
19+
npm run compile
20+
npm publish

0 commit comments

Comments
 (0)