Skip to content

Commit b283d6b

Browse files
committed
build: add release-please for releases
1 parent 8017a91 commit b283d6b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release-please.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
name: release-please
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: bcoe/release-please-action@v2
11+
id: release
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: node
15+
package-name: get-pkg-repo
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: 14
20+
- run: npm install
21+
- uses: actions/setup-node@v1
22+
with:
23+
node-version: 14
24+
registry-url: 'https://external-dot-oss-automation.appspot.com/'
25+
if: ${{ steps.release.outputs.release_created }}
26+
- run: npm install
27+
if: ${{ steps.release.outputs.release_created }}
28+
- run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
31+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)