From 66e89c445a2d429d60db0c3ee6c617b3c09c6d93 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Jun 2025 08:44:06 +0000 Subject: [PATCH 1/2] Initial plan for issue From 22f1acbf024187300e1f4f217823769f3fab19fa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Jun 2025 08:50:32 +0000 Subject: [PATCH 2/2] Add npm publish GitHub workflow for tag pushes Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com> --- .github/workflows/publish.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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..efc53ca --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,39 @@ +name: Publish to NPM + +on: + push: + tags: + - '*' + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js 22 + uses: actions/setup-node@v4 + with: + node-version: 22 + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm install + + - name: Run linter + run: npm run lint + + - name: Build project + run: npm run build + + - name: Run tests + run: npm test + + - name: Run browser tests + run: npm run test:browser + + - name: Publish to NPM + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file