Skip to content

Commit

Permalink
Add GitHub action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Xennis committed Jul 1, 2024
1 parent da4daef commit 0b913a8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 43 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/release-package.yml.tmp

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Packages to NPM

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
#- uses: actions/setup-node@v4
# with:
# node-version: 16
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: |
- args: [--frozen-lockfile]
- name: Build packages
run: pnpm --filter './packages/\*' run build
- name: Publish packages
run: pnpm publish --recursive --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 0b913a8

Please sign in to comment.