🔥 remove github action to publish

This commit is contained in:
zS1L3NT Mac 2024-07-08 05:02:57 +08:00
parent 984d159c4a
commit 435d0e941b
No known key found for this signature in database
GPG Key ID: 02BE07CD431E4F42
1 changed files with 0 additions and 38 deletions

View File

@ -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 }}