Skip to content

Commit ec15b1a

Browse files
committed
Update github actions
1 parent db37dc3 commit ec15b1a

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

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

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

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,25 @@ 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+
1936
- run: npm ci
2037
- run: npm run npm-build-package:npmjs
21-
- run: cd dist/npm && npm publish --access public
38+
- run: npm publish --access public --folder dist/npm
2239
env:
2340
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@proangular/ngx-scroll-top",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Configurable, lightweight back to top button for Angular projects.",
55
"author": "Pro Angular <webmaster@proangular.com>",
66
"homepage": "https://www.proangular.com",

0 commit comments

Comments
 (0)