🔥 remove github action to publish
This commit is contained in:
parent
984d159c4a
commit
435d0e941b
|
|
@ -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 }}
|
||||
Loading…
Reference in New Issue