Skip to content

Commit

Permalink
build: update publish configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Dec 31, 2021
1 parent 095e1eb commit 366a498
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/publish.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/release-please.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/release-please.yml
@@ -0,0 +1,31 @@
on:
push:
branches:
- master
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: standard-version
# The logic below handles the npm publication:
- uses: actions/checkout@v2
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://external-dot-oss-automation.appspot.com'
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit 366a498

Please sign in to comment.