Skip to content

Commit

Permalink
feat: add reusable publish workflows (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan authored Feb 24, 2024
1 parent 9764228 commit cf8bb35
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,9 @@ on:

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install
run: yarn

- name: Build
run: yarn build

- name: Set npm token
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish packages
run: yarn pub
uses: cordiverse/workflows/.github/workflows/publish.yml@main
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit cf8bb35

Please sign in to comment.