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 22bec54
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
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
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
6 changes: 6 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
yarnPath: .yarn/releases/yarn-4.1.1.cjs
enableGlobalCache: false
npmPublishAccess: "public"
npmScopes:
bartheleway:
npmPublishRegistry: "https://registry.npmjs.org"
npmAlwaysAuth: true
npmAuthToken: "${NODE_AUTH_TOKEN}"

0 comments on commit 22bec54

Please sign in to comment.