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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
cache: 'pnpm'
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v2 registry-url: 'https://registry.npmjs.org'
- run: | - run: |
pnpm install --frozen-lockfile pnpm install --frozen-lockfile
pnpm run build pnpm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

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