From 0293adf017529029d297fe6061a193ce2c43df22 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Fri, 3 Mar 2023 23:45:34 +0100 Subject: [PATCH] release --- .github/workflows/release.yaml | 18 ++++++++++++++++++ package.json | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..506c82d --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/package.json b/package.json index 61d485c..c92aba3 100644 --- a/package.json +++ b/package.json @@ -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",