Skip to content

Commit

Permalink
Add CI for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartheleway committed Apr 10, 2024
1 parent 803ed81 commit 9922705
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish to npm
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: yarn
- name: Publish to npm
run: yarn npm publish --otp ${{ secrets.NPM_AUTH_TOKEN }}
5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
yarnPath: .yarn/releases/yarn-4.1.1.cjs
enableGlobalCache: false
npmPublishAccess: "public"
npmScopes:
bartheleway:
npmPublishRegistry: "https://registry.npmjs.org"
npmAlwaysAuth: true

0 comments on commit 9922705

Please sign in to comment.