From 7eeb68a78f76dd57c3cec7e5e2248b9ba70b885f Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Fri, 1 Sep 2023 11:57:19 -0500 Subject: [PATCH 1/2] Create main.yml --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..74cc107 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: NPM / Publish + +on: + workflow_dispatch: + # We only publish if the version of sern handler is different. workflow automatically cancels if verson is the same + push: + branches: + - 'main' +jobs: + test-and-publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 + - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3 + with: + node-version: 17 + - run: yarn --immutable + - run: yarn build + - uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939 # v1 + with: + token: ${{ secrets.NPM_TOKEN }} + access: "public" From 5a467645031b78b399b5243a25f8bdae7cd86cfe Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Fri, 1 Sep 2023 11:57:38 -0500 Subject: [PATCH 2/2] Rename main.yml to publish.yml --- .github/workflows/{main.yml => publish.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{main.yml => publish.yml} (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/publish.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/publish.yml