Skip to content

Commit

Permalink
ci: add release workflow (#241)
Browse files Browse the repository at this point in the history
Release-As: 1.4.1
  • Loading branch information
ocavue authored Aug 22, 2024
1 parent 0e3b5ef commit 469cb11
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ runs:
steps:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run-install: false

- name: Setup node
uses: actions/setup-node@v4
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
branches:
- master

jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release-please
with:
release-type: node
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}

publish:
runs-on: ubuntu-latest
needs: [version]
if: ${{ needs.version.outputs.release_created }}
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup

- name: Publish to NPM
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 469cb11

Please sign in to comment.