Skip to content

Commit

Permalink
Finish release/2022-04
Browse files Browse the repository at this point in the history
node 16
  • Loading branch information
hirensoni913 authored Oct 5, 2022
2 parents c3167e8 + 7100391 commit de1f0cc
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,38 @@ name: Node.js Package

on:
release:
types: [created]
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: tagName
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
- name: update the version with TAG
run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json
- run: yarn install
- run: yarn build
- run: yarn build


publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: tagName
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
registry-url: https://registry.npmjs.org/
scope: openimis
- name: update the version with TAG
run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json
- run: yarn install
- run: yarn build
- run: npm publish --access public
Expand All @@ -38,11 +47,15 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: tagName
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 16
registry-url: https://npm.pkg.github.com/
- name: update the version with TAG
run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json
- run: yarn install
- run: yarn build
- run: npm publish
Expand Down

0 comments on commit de1f0cc

Please sign in to comment.