Skip to content

Commit

Permalink
sync: synced local '.github/workflows/publish.yaml' with remote '.git…
Browse files Browse the repository at this point in the history
…hub/workflows/publish.yaml'
  • Loading branch information
multirepo-manager[bot] committed Sep 5, 2023
1 parent d23ec0b commit 4e917db
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ on:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- run: yarn test
test:
uses: ./.github/workflows/test.yaml # use the callable tests job to run tests
secrets:
SSH_GITHUB_KEY: ${{ secrets.SSH_GITHUB_KEY }}

publish-npm:
needs: build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -25,14 +20,14 @@ jobs:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: yarn install
run: yarn install --network-concurrency 1
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-gpr:
needs: build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -44,7 +39,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Install dependencies
run: yarn install
run: yarn install --network-concurrency 1
- name: Publish
run: npm publish
env:
Expand Down

0 comments on commit 4e917db

Please sign in to comment.