Skip to content

test: release package workflow #9

test: release package workflow

test: release package workflow #9

Workflow file for this run

name: Publish Package
on:
push:
branches: [test]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Use Node.js v18
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
result=$(npx tsx scripts/filterPackages.mts)
echo filters=$result >> $GITHUB_ENV
# run: pnpm run --filter \"./packages/**\" build
- name: Publish 🚀
shell: bash
run: pnpm publish --filter "packages/{${{ env.filters }}}" --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}