From 435d0e941b9935f35c90a99c6bfbffff6ea95efc Mon Sep 17 00:00:00 2001 From: zS1L3NT Mac Date: Mon, 8 Jul 2024 05:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20remove=20github=20action=20to=20?= =?UTF-8?q?publish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-npm.yml | 38 ------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/publish-npm.yml diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml deleted file mode 100644 index 4cc0060..0000000 --- a/.github/workflows/publish-npm.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Publish NPM -on: - release: - types: - - published - push: - branches: - - main - paths: - - .github/workflows/publish-npm.yml -jobs: - publish-npm: - runs-on: ubuntu-latest - steps: - - name: Performing Repository Checkout - uses: actions/checkout@v2 - - - name: Performing Pnpm Install on Workspace - uses: pnpm/action-setup@v2.2.2 - with: - version: latest - run_install: true - - - name: Transpiling TypeScript - run: pnpm build - - - name: Writing to .npmrc file - run: | - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc - echo 'registry=https://registry.npmjs.org/' >> .npmrc - echo 'always-auth=true' >> .npmrc - - - name: Publishing to NPM - run: | - pnpm publish --no-git-checks - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}