Skip to content

Commit

Permalink
[common] Updating NPM CI settings (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 5, 2023
1 parent ef7d958 commit 6584977
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
custom-cache-key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"

- name: "Setup node"
uses: "actions/setup-node@v3"
uses: "actions/setup-node@v4"
with:
node-version: "${{ matrix.node-version }}"

Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
custom-cache-key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"

- name: "Setup node"
uses: "actions/setup-node@v3"
uses: "actions/setup-node@v4"
with:
node-version: "${{ matrix.node-version }}"

Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
run: "make tests"

- name: "Upload logs"
uses: "actions/upload-artifact@v2"
uses: "actions/upload-artifact@v3"
with:
name: "Logs - Tests (${{ matrix.operating-system }}, ${{ matrix.php-version }})"
path: "var/log"
Expand Down Expand Up @@ -375,7 +375,7 @@ jobs:
run: "make mutations-infection ARGS='--logger-github'"

- name: "Upload logs"
uses: "actions/upload-artifact@v2"
uses: "actions/upload-artifact@v3"
with:
name: "Logs - Mutations"
path: "var/coverage/mutations/infection.log"
Expand Down Expand Up @@ -430,7 +430,7 @@ jobs:
custom-cache-key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"

- name: "Setup node"
uses: "actions/setup-node@v3"
uses: "actions/setup-node@v4"
with:
node-version: "${{ matrix.node-version }}"

Expand Down Expand Up @@ -470,7 +470,7 @@ jobs:
uses: "actions/checkout@v4"

- name: "Install node"
uses: "actions/setup-node@v3"
uses: "actions/setup-node@v4"
with:
node-version: "${{ matrix.node-version }}"
registry-url: "https://registry.npmjs.org"
Expand All @@ -482,7 +482,7 @@ jobs:
run: "yarn build"

- name: "Upload build result"
uses: "actions/upload-artifact@v2"
uses: "actions/upload-artifact@v3"
with:
name: js-dist
path: dist
Expand All @@ -502,7 +502,7 @@ jobs:
uses: "actions/checkout@v4"

- name: "Install node"
uses: "actions/setup-node@v3"
uses: "actions/setup-node@v4"
with:
node-version: "${{ matrix.node-version }}"
registry-url: "https://registry.npmjs.org"
Expand All @@ -527,11 +527,11 @@ jobs:
path: dist

- name: "Publish to NPM"
uses: "JS-DevTools/npm-publish@v1"
uses: "JS-DevTools/npm-publish@v3"
id: "npm_publish"
if: contains(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.NPMJS_TOKEN }}
access: "public"

- name: "Publish to NPM result"
Expand All @@ -540,11 +540,11 @@ jobs:
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
- name: "Publish to NPM"
uses: "JS-DevTools/npm-publish@v1"
uses: "JS-DevTools/npm-publish@v3"
id: "npm_publish_dev"
if: contains(github.ref, 'refs/tags/') == false
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.NPMJS_TOKEN }}
access: "public"
tag: "dev"

Expand All @@ -568,7 +568,7 @@ jobs:
uses: "actions/checkout@v4"

- name: "Install node"
uses: "actions/setup-node@v3"
uses: "actions/setup-node@v4"
with:
node-version: "${{ matrix.node-version }}"
registry-url: "https://npm.pkg.github.com"
Expand All @@ -593,7 +593,7 @@ jobs:
path: dist

- name: "Publish to NPM"
uses: "JS-DevTools/npm-publish@v1"
uses: "JS-DevTools/npm-publish@v3"
id: "npm_publish"
if: contains(github.ref, 'refs/tags/')
with:
Expand All @@ -607,7 +607,7 @@ jobs:
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
- name: "Publish to NPM"
uses: "JS-DevTools/npm-publish@v1"
uses: "JS-DevTools/npm-publish@v3"
id: "npm_publish_dev"
if: contains(github.ref, 'refs/tags/') == false
with:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fastybird/devices-module",
"version": "1.0.0-dev.18",
"version": "1.0.0-dev.19",
"type": "module",
"description": "FastyBird IoT devices module for connectors & devices management & basic control logic",
"keywords": [
Expand Down Expand Up @@ -60,8 +60,8 @@
"pretty:write": "prettier assets --write"
},
"dependencies": {
"@fastybird/metadata-library": "^1.0.0-dev.18",
"@fastybird/web-ui-library": "^1.0.0-dev.18",
"@fastybird/metadata-library": "^1.0.0-dev.19",
"@fastybird/web-ui-library": "^1.0.0-dev.19",
"@fastybird/vue-wamp-v1": "^1.2",
"@fortawesome/vue-fontawesome": "^3.0",
"ajv": "^8.11",
Expand Down

0 comments on commit 6584977

Please sign in to comment.