Skip to content

Commit

Permalink
Update release-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tevko authored Sep 25, 2024
1 parent 55862f6 commit c9d1676
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@ env:
API_CLIENT_PKG_TOKEN: ${{ secrets.API_CLIENT_PKG_TOKEN }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: yarn install
- run: yarn build

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
Expand All @@ -27,8 +16,28 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
registry-url: https://npm.pkg.github.com/
- uses: actions/cache@v2
id: yarn-cache
name: Cache npm deps
with:
path: |
node_modules
**/node_modules
~/.cache/Cypress
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
- uses: actions/cache@v2
id: dist
name: Cache dist
with:
path: |
packages/*/dist
packages/react-styles/css
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
- name: Build dist
run: yarn build
- run: cd packages/module && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit c9d1676

Please sign in to comment.