Skip to content

Commit

Permalink
chore: add publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
atlj committed May 9, 2024
1 parent 488f1a8 commit 53ea61c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on: workflow_dispatch

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

- name: Setup
uses: ./.github/actions/setup

- name: Prepare
run: yarn prepare

- name: Publish
run: yarn npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ plugins:
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.6.1.cjs
npmAuthToken: ${ NPM_AUTH_TOKEN }

0 comments on commit 53ea61c

Please sign in to comment.