github actions

This commit is contained in:
Niccolo Borgioli 2023-05-25 23:29:05 +02:00
parent ac68f4a540
commit 92893a5b2d
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
2 changed files with 9 additions and 2 deletions

View File

@ -12,14 +12,20 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v2
registry-url: 'https://registry.npmjs.org'
- run: |
pnpm install --frozen-lockfile
pnpm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
docker:
runs-on: ubuntu-latest

View File

@ -13,10 +13,11 @@ jobs:
- uses: actions/checkout@v3
# Node
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v2
# Docker
- uses: docker/setup-qemu-action@v2