Skip to content

Commit

Permalink
deprecated node action
Browse files Browse the repository at this point in the history
  • Loading branch information
werthdavid committed Jun 3, 2024
1 parent 4622249 commit d145c43
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
build:
uses: ./.github/workflows/build.yml
with:
node-version: 18
node-version: 22
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ngx-kjua
path: artifact/ngx-kjua/
path: dist/ngx-kjua/
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
registry-url: ${{ inputs.registry-url }}
- run: npm ci --no-optional --force
- run: npm publish --access public ${{ inputs.release-tag }}
working-directory: artifact/ngx-kjua
working-directory: dist/ngx-kjua/
env:
NODE_AUTH_TOKEN: ${{ secrets.npm-token }}
6 changes: 3 additions & 3 deletions .github/workflows/release-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
name: Build release
uses: ./.github/workflows/build.yml
with:
node-version: 18
node-version: 22

publish-npm:
needs: build-release
uses: ./.github/workflows/npm-publish.yml
with:
registry-url: https://registry.npmjs.org/
node-version: 18
node-version: 22
secrets:
npm-token: ${{ secrets.NPM_TOKEN }}

Expand All @@ -26,6 +26,6 @@ jobs:
uses: ./.github/workflows/npm-publish.yml
with:
registry-url: https://npm.pkg.github.com/
node-version: 18
node-version: 22
secrets:
npm-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/werthdavid/ngx-kjua"
"url": "git+https://github.com/werthdavid/ngx-kjua.git"
},
"authors": [
{
Expand Down

0 comments on commit d145c43

Please sign in to comment.