Skip to content

Commit

Permalink
chore: readd action
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdevv committed May 24, 2022
1 parent 0fc5708 commit 50f2b33
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release Package

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node 16
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: 7.0.0

- name: Install
run: pnpm install

- name: Publish
run: |
pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
pnpm publish --no-git-checks
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 50f2b33

Please sign in to comment.