From 5ec52b3652a5f69e5f602231cb5f7f2eb99240c7 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Tue, 24 Oct 2023 08:27:34 +0200 Subject: [PATCH] Add publish ci (#10) --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..86f5fc8 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +name: Publish + +on: + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + name: Release + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + + - name: Set node version to 20 + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'pnpm' + + - name: Prepare + run: pnpm install --frozen-lockfile + + - name: Publish + run: pnpm --recursive publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}