Skip to content

Commit

Permalink
conf(github): add workflow release-please.yml PE-37039
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Mar 29, 2024
1 parent 4a43723 commit f2fb76d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: release-please
on:
push:
branches:
- master

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}

steps:
- name: Release Please
uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node
token: ${{ secrets.GH_TOKEN }}

publish:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: yarn

- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit f2fb76d

Please sign in to comment.