Skip to content

Commit

Permalink
fix(): change action process
Browse files Browse the repository at this point in the history
  • Loading branch information
houssenedao committed Dec 16, 2021
1 parent 6c86ef8 commit 2ed7bba
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/publisher.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
name: PUBLISH PACKAGE

name: Publish Package to npmjs
on:
release:
types: [created]

jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Publish if version has been updated
uses: pascalgn/[email protected]
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
tag_name: "v%s"
tag_message: "v%s"
create_tag: "true"
commit_pattern: "^Release (\\S+)"
workspace: "."
publish_command: "npm"
publish_args: "--non-interactive"
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH }}

0 comments on commit 2ed7bba

Please sign in to comment.