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 6c65dd3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish

on: workflow_dispatch

jobs:
lint:
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
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ plugins:
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.6.1.cjs

npmPublishRegistry: https://registry.npmjs.org/
npmAlwaysAuth: true
npmAuthToken: ${NPM_AUTH_TOKEN}

0 comments on commit 6c65dd3

Please sign in to comment.