Skip to content

Commit 94def0c

Browse files
committed
Update github actions
1 parent ec15b1a commit 94def0c

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

.github/workflows/on-merge-main-deploy-gpr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
registry-url: "https://npm.pkg.github.com"
2222
- run: npm ci
2323
- run: npm run npm-build-package:gpr
24-
- run: npm publish --folder dist/npm
24+
- run: cd dist/npm
25+
- run: npm publish
2526
env:
2627
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/on-merge-main-deploy-npmjs.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,9 @@ jobs:
1616
node-version: "16.x"
1717
registry-url: "https://registry.npmjs.org"
1818
scope: "@proangular"
19-
20-
- name: Cache node modules
21-
id: cache-npm
22-
uses: actions/cache@v3
23-
env:
24-
cache-name: cache-node-modules
25-
with:
26-
# npm cache files are stored in `~/.npm` on Linux/macOS
27-
path: ~/.npm
28-
key:
29-
${{ runner.os }}-build-${{ env.cache-name }}-${{
30-
hashFiles('**/package-lock.json') }}
31-
restore-keys: |
32-
${{ runner.os }}-build-${{ env.cache-name }}-
33-
${{ runner.os }}-build-
34-
${{ runner.os }}-
35-
3619
- run: npm ci
3720
- run: npm run npm-build-package:npmjs
38-
- run: npm publish --access public --folder dist/npm
21+
- run: cd dist/npm
22+
- run: npm publish
3923
env:
4024
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)