Skip to content

Commit 366a498

Browse files
committed
build: update publish configuration
1 parent 095e1eb commit 366a498

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

.github/publish.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/release-please.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/release-please.yml

Lines changed: 31 additions & 0 deletions
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: GoogleCloudPlatform/release-please-action@v3
11+
id: release
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: node
15+
package-name: standard-version
16+
# The logic below handles the npm publication:
17+
- uses: actions/checkout@v2
18+
# these if statements ensure that a publication only occurs when
19+
# a new release is created:
20+
if: ${{ steps.release.outputs.release_created }}
21+
- uses: actions/setup-node@v1
22+
with:
23+
node-version: 12
24+
registry-url: 'https://external-dot-oss-automation.appspot.com'
25+
if: ${{ steps.release.outputs.release_created }}
26+
- run: npm ci
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)