Skip to content

Commit 37285d0

Browse files
committedMay 20, 2022
build: configure backports
1 parent d127871 commit 37285d0

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
 

‎.github/workflows/release.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
push:
3+
branches:
4+
- 6.x
5+
name: release-please
6+
jobs:
7+
release-please-pr:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- id: release-pr
11+
uses: google-github-actions/release-please-action@v3
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: node
15+
package-name: protobufjs
16+
command: release-pr
17+
release-please-release:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: google-github-actions/release-please-action@v3
21+
id: tag-release
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
release-type: node
25+
package-name: protobufjs
26+
command: github-release
27+
- uses: actions/checkout@v2
28+
if: ${{ steps.tag-release.outputs.release_created }}
29+
- uses: actions/setup-node@v1
30+
if: ${{ steps.tag-release.outputs.release_created }}
31+
with:
32+
node-version: 14
33+
registry-url: 'https://wombat-dressing-room.appspot.com/'
34+
- name: publish
35+
if: ${{ steps.tag-release.outputs.release_created }}
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
38+
run: |
39+
npm install
40+
npm publish --tag=latest-6
41+

0 commit comments

Comments
 (0)
Please sign in to comment.