Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-t-wang committed Jun 18, 2024
1 parent 95f12f4 commit b74840c
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: New release

on:
push:
branches:
- main
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
steps:
- name: Release
id: release
uses: google-github-actions/release-please-action@v3
with:
command: manifest

publish:
needs: release
name: Publish
runs-on: ubuntu-latest
if: ${{ needs.release.outputs.releases_created }}
steps:
- uses: actions/checkout@v3

- uses: pnpm/[email protected]
with:
version: 8

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish
run: pnpm publish -r --report-summary
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
release:
name: Release
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
steps:
- name: Release
id: release
uses: google-github-actions/release-please-action@v3
with:
command: manifest

publish:
needs: release
name: Publish
runs-on: ubuntu-latest
if: ${{ needs.release.outputs.releases_created }}
steps:
- uses: actions/checkout@v3

- uses: pnpm/[email protected]
with:
version: 9

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish
run: pnpm publish -r --report-summary
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit b74840c

Please sign in to comment.