Skip to content

Commit

Permalink
Update npm-publish-github-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
capyq authored Dec 16, 2024
1 parent 93d775c commit 0a940dc
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- working-directory: packages/rte-design-system-react
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
- name: Install dependencies
working-directory: packages/rte-design-system-react
run: npm ci
- name: Run test
working-directory: packages/rte-design-system-react
run: npm test

publish-gpr:
needs: build
Expand All @@ -27,13 +30,16 @@ jobs:
contents: read
packages: write
steps:
- working-directory: packages/rte-design-system-react
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
- name: Install dependencies
working-directory: packages/rte-design-system-react
run: npm ci
- name: Publish
working-directory: packages/rte-design-system-react
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 0a940dc

Please sign in to comment.