Skip to content

Commit

Permalink
Paralellize publish jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Mar 20, 2024
1 parent c730089 commit 5f7e9f5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ on:
branches: [main]

jobs:
publish:
publish NPM:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand All @@ -22,13 +21,28 @@ jobs:
run: npm run build

- run: npm ci

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}

publish Github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
registry-url: "https://npm.pkg.github.com"

- name: Install dependencies
run: npm install

- name: Run build
run: npm run build

- run: npm ci

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_REGISTRY_TOKEN }}

0 comments on commit 5f7e9f5

Please sign in to comment.