This commit is contained in:
cupcakearmy 2023-03-03 23:45:34 +01:00
parent 82410d4937
commit 0293adf017
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
2 changed files with 21 additions and 0 deletions

18
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/build
- run: pnpm test
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -4,6 +4,9 @@
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"clean": "rm -rf ./dist",
"prepublishOnly": "run-s clean build test",