From 6c7559eaa2672890e4e890d25545cce2b330f471 Mon Sep 17 00:00:00 2001 From: Benjamin Barbeau <73616169+Ategon@users.noreply.github.com> Date: Thu, 8 Feb 2024 02:45:32 -0500 Subject: [PATCH 1/5] Create npm.yml --- .github/workflows/npm.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/npm.yml diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml new file mode 100644 index 0000000..1cd2919 --- /dev/null +++ b/.github/workflows/npm.yml @@ -0,0 +1,18 @@ +name: Publish Package to npm +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From e7d3e66a25034cf0303aef2efecbf297232bfae6 Mon Sep 17 00:00:00 2001 From: Benjamin Barbeau <73616169+Ategon@users.noreply.github.com> Date: Thu, 8 Feb 2024 03:05:49 -0500 Subject: [PATCH 2/5] Update npm.yml --- .github/workflows/npm.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 1cd2919..f5a48ff 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -7,6 +7,21 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: 'Automated Version Bump' + uses: 'florian-h05/gh-action-advanced-bump-version@main' + id: version-bump + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + major-wording: 'major,Major,breaking,Breaking' + minor-wording: 'minor,Minor,add,Add,adds,Adds,new,New' + patch-wording: 'fix,Fix,fixes,Fixes,patch,Patch' + rc-wording: 'rc,pre' + hours-to-go-back: 24 + skip-if-no-commits: 'true' + tag-prefix: 'v' + commit-message: 'CI: bumps version to {{version}} [skip ci]' + bump-policy: 'last-commit' - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: From 17bb2962a0e63e138ee9f645c7b6a61fcca5f190 Mon Sep 17 00:00:00 2001 From: Benjamin Barbeau <73616169+Ategon@users.noreply.github.com> Date: Thu, 8 Feb 2024 03:06:46 -0500 Subject: [PATCH 3/5] Update npm.yml --- .github/workflows/npm.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index f5a48ff..93fc83b 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -17,7 +17,6 @@ jobs: minor-wording: 'minor,Minor,add,Add,adds,Adds,new,New' patch-wording: 'fix,Fix,fixes,Fixes,patch,Patch' rc-wording: 'rc,pre' - hours-to-go-back: 24 skip-if-no-commits: 'true' tag-prefix: 'v' commit-message: 'CI: bumps version to {{version}} [skip ci]' From 1652d39598afd0e723eb9ef87fd4ce5993826980 Mon Sep 17 00:00:00 2001 From: Benjamin Barbeau <73616169+Ategon@users.noreply.github.com> Date: Thu, 8 Feb 2024 03:10:13 -0500 Subject: [PATCH 4/5] Update npm.yml --- .github/workflows/npm.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 93fc83b..1cd2919 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -7,20 +7,6 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: 'Automated Version Bump' - uses: 'florian-h05/gh-action-advanced-bump-version@main' - id: version-bump - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - major-wording: 'major,Major,breaking,Breaking' - minor-wording: 'minor,Minor,add,Add,adds,Adds,new,New' - patch-wording: 'fix,Fix,fixes,Fixes,patch,Patch' - rc-wording: 'rc,pre' - skip-if-no-commits: 'true' - tag-prefix: 'v' - commit-message: 'CI: bumps version to {{version}} [skip ci]' - bump-policy: 'last-commit' - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: From 1c9667178a3ac5b194d8accd9b9dac159aac7551 Mon Sep 17 00:00:00 2001 From: Benjamin Barbeau <73616169+Ategon@users.noreply.github.com> Date: Thu, 8 Feb 2024 09:40:38 -0500 Subject: [PATCH 5/5] Update npm.yml --- .github/workflows/npm.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 1cd2919..9f9f6e8 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -13,6 +13,7 @@ jobs: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - run: npm ci + - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}