Skip to content

Commit

Permalink
Apply version to workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
huntharo committed Jun 10, 2023
1 parent 64a352d commit 98e3e1f
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,25 @@ jobs:
with:
node-version: 16

- name: Use the Release Tag Version
run: |
npm version from-git --allow-same-version --no-git-tag-version
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: |
node_modules
packages/**/node_modules
!node_modules/.cache
key: node-modules-${{ hashFiles('package.json', 'yarn.lock', 'patches/*') }}
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: |
node_modules
packages/**/node_modules
!node_modules/.cache
key: node-modules-${{ hashFiles('package.json', 'yarn.lock', 'patches/*') }}

- name: Install Modules
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Use the Release Tag Version
run: |
npm version from-git --allow-same-version --no-git-tag-version --workspaces
npm version from-git --allow-same-version --no-git-tag-version
- name: Build
run: npm run build

Expand Down

0 comments on commit 98e3e1f

Please sign in to comment.