From 34297777ee3af24475b15609f11eb873a05658b6 Mon Sep 17 00:00:00 2001 From: amcdnl Date: Thu, 30 May 2024 12:08:30 -0400 Subject: [PATCH] add publish flow --- .github/workflows/npm-publish.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..ab0c2fd --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,20 @@ +name: publish npm package + +on: + workflow_dispatch + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "18" + - run: npm ci + - run: npm run build + - uses: JS-DevTools/npm-publish@v2 + with: + token: ${{ secrets.NPM_TOKEN }} + - if: ${{ steps.publish.outputs.type }} + run: echo "Version changed!"