Update CI

This commit is contained in:
Luis Blanco 2021-04-25 11:20:46 +03:00
parent 3224521e0c
commit c4d42eea40
3 changed files with 21 additions and 9 deletions

View File

@ -13,24 +13,31 @@ on:
default: Fixed minor issues. default: Fixed minor issues.
jobs: jobs:
publish: Publish:
if: contains('["raub"]', github.actor) if: contains('["raub"]', github.actor)
runs-on: ubuntu-16.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2
- name: Fetch Repository
uses: actions/checkout@v2
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 14.16 node-version: 14.16.0
- name: Get Npm Version - name: Get Npm Version
id: package-version id: package-version
uses: martinbeentjes/npm-get-version-action@master uses: martinbeentjes/npm-get-version-action@master
- name: Publish - name: Publish
run: | run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --ignore-scripts npm publish --ignore-scripts
env: env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: GitHub Release - name: GitHub Release
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env:
@ -39,5 +46,3 @@ jobs:
tag_name: v${{ steps.package-version.outputs.current-version}} tag_name: v${{ steps.package-version.outputs.current-version}}
release_name: ${{ github.event.inputs.name }} release_name: ${{ github.event.inputs.name }}
body: ${{ github.event.inputs.text }} body: ${{ github.event.inputs.text }}

8
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "addon-tools-raub", "name": "addon-tools-raub",
"version": "5.3.3", "version": "5.3.4",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@ -5429,6 +5429,12 @@
"is-typedarray": "^1.0.0" "is-typedarray": "^1.0.0"
} }
}, },
"typescript": {
"version": "4.2.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
"dev": true
},
"union-value": { "union-value": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz",

View File

@ -1,7 +1,7 @@
{ {
"author": "Luis Blanco <luisblanco1337@gmail.com>", "author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "addon-tools-raub", "name": "addon-tools-raub",
"version": "5.3.3", "version": "5.3.4",
"description": "Helpers for Node.js addons and dependency packages", "description": "Helpers for Node.js addons and dependency packages",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "index.js",
@ -74,6 +74,7 @@
"eslint": "7.23.0", "eslint": "7.23.0",
"eslint-plugin-jest": "24.3.3", "eslint-plugin-jest": "24.3.3",
"eslint-plugin-node": "11.1.0", "eslint-plugin-node": "11.1.0",
"jest": "26.6.3" "jest": "26.6.3",
"typescript": "4.2.4"
} }
} }