Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add github packages #270

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: google-github-actions/release-please-action@v3
with:
command: manifest
release-type: node

publish:
needs: release
Expand Down Expand Up @@ -47,3 +48,33 @@ jobs:
run: pnpm publish -r --report-summary
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

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

- uses: pnpm/action-setup@v4
with:
version: 8

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
registry-url: 'https://npm.pkg.github.com'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

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