Skip to content

Publish Packages

Publish Packages #4

name: Publish Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9.4.0
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
token: ${{ secrets.NPM_TOKEN }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm build
- name: Publish agw-client
working-directory: packages/agw-client
run: pnpm publish --no-git-checks
- name: Publish agw-react
working-directory: packages/agw-react
run: pnpm publish --no-git-checks