From b5f2e385ea860d6922875b4fcdb9fb21d81df19a Mon Sep 17 00:00:00 2001 From: GigiaJ Date: Mon, 24 Nov 2025 02:05:36 -0600 Subject: [PATCH] I hate Github actions --- .github/workflows/publisher.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publisher.yml diff --git a/.github/workflows/publisher.yml b/.github/workflows/publisher.yml new file mode 100644 index 0000000..95c420f --- /dev/null +++ b/.github/workflows/publisher.yml @@ -0,0 +1,30 @@ +name: Publish to NPM + +on: + push: + branches: [ main ] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm install + + - name: Publish to npm (Trusted Publishing) + run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file