From 60a1bdf820fdc6b495aff15aa878c5314a7b332a Mon Sep 17 00:00:00 2001 From: Santiago Zaldivar Date: Sun, 22 Oct 2023 13:31:55 +1100 Subject: [PATCH 1/2] publish to NPM on github releases --- .github/workflows/publish.yml | 18 ++++++++++++++++++ package.json | 3 +-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7f7e239 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +name: Publish Package to NPM +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: "18.x" + registry-url: "https://registry.npmjs.org/" + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 56c25da..ca75bdb 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,7 @@ { "name": "jsthermalcomfort", - "version": "0.0.2", + "version": "0.0.3", "description": "A JavaScript package to calculate thermal comfort indices (e.g., Predicted Mean Vote, Standard Effective Temperature, Predicted Heat Strain).", - "types": "./dist/index.d.ts", "type": "module", "files": [ "lib" From 3280edbcb7ca2e1f2fd161bb5baa66d49e4bf40e Mon Sep 17 00:00:00 2001 From: Santiago Zaldivar Date: Sun, 22 Oct 2023 13:34:30 +1100 Subject: [PATCH 2/2] bumb version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ca75bdb..fcd2eff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jsthermalcomfort", - "version": "0.0.3", + "version": "0.1.0", "description": "A JavaScript package to calculate thermal comfort indices (e.g., Predicted Mean Vote, Standard Effective Temperature, Predicted Heat Strain).", "type": "module", "files": [