diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7b47682..4b8671f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,24 +13,31 @@ on: default: Fixed minor issues. jobs: - publish: + Publish: if: contains('["raub"]', github.actor) - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v2 + + - name: Fetch Repository + uses: actions/checkout@v2 + - name: Install Node.js uses: actions/setup-node@v1 with: - node-version: 14.16 + node-version: 14.16.0 + - name: Get Npm Version id: package-version uses: martinbeentjes/npm-get-version-action@master + - name: Publish run: | npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} npm publish --ignore-scripts env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: GitHub Release uses: actions/create-release@v1 env: @@ -39,5 +46,3 @@ jobs: tag_name: v${{ steps.package-version.outputs.current-version}} release_name: ${{ github.event.inputs.name }} body: ${{ github.event.inputs.text }} - - diff --git a/package-lock.json b/package-lock.json index 0dfaf39..44760ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "addon-tools-raub", - "version": "5.3.3", + "version": "5.3.4", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5429,6 +5429,12 @@ "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": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", diff --git a/package.json b/package.json index d9fd705..8d9c084 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "Luis Blanco ", "name": "addon-tools-raub", - "version": "5.3.3", + "version": "5.3.4", "description": "Helpers for Node.js addons and dependency packages", "license": "MIT", "main": "index.js", @@ -74,6 +74,7 @@ "eslint": "7.23.0", "eslint-plugin-jest": "24.3.3", "eslint-plugin-node": "11.1.0", - "jest": "26.6.3" + "jest": "26.6.3", + "typescript": "4.2.4" } }