Skip to content

Commit 98e3e1f

Browse files
committed
Apply version to workspaces
1 parent 64a352d commit 98e3e1f

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,25 @@ jobs:
1616
with:
1717
node-version: 16
1818

19-
- name: Use the Release Tag Version
20-
run: |
21-
npm version from-git --allow-same-version --no-git-tag-version
22-
23-
- name: Cache Node Modules
24-
id: cache-node-modules
25-
uses: actions/cache@v3
26-
with:
27-
path: |
28-
node_modules
29-
packages/**/node_modules
30-
!node_modules/.cache
31-
key: node-modules-${{ hashFiles('package.json', 'yarn.lock', 'patches/*') }}
19+
- name: Cache Node Modules
20+
id: cache-node-modules
21+
uses: actions/cache@v3
22+
with:
23+
path: |
24+
node_modules
25+
packages/**/node_modules
26+
!node_modules/.cache
27+
key: node-modules-${{ hashFiles('package.json', 'yarn.lock', 'patches/*') }}
3228

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

33+
- name: Use the Release Tag Version
34+
run: |
35+
npm version from-git --allow-same-version --no-git-tag-version --workspaces
36+
npm version from-git --allow-same-version --no-git-tag-version
37+
3738
- name: Build
3839
run: npm run build
3940

0 commit comments

Comments
 (0)