mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
26 lines
688 B
YAML
26 lines
688 B
YAML
name: Release
|
|
on:
|
|
release:
|
|
types: [published]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
# Setup .npmrc file to publish to npm
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20.x'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- run: npm install --global pnpm
|
|
- run: pnpm i
|
|
- run: npm run test
|
|
- run: npm run build
|
|
- run: cd packages/types/
|
|
- run: npm publish --tag next
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
- run: cd ../util/
|
|
- run: npm publish --tag next
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|