axios-axios/.github/workflows/publish.yml
Jay bc3b6318b6
refactor: remove old test suite update docs (#7498)
* chore: update all ci workflows

* chore: added readme for tests

* chore: fix release branch

* Update .github/workflows/release-branch.yml

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-03-13 18:55:58 +02:00

32 lines
676 B
YAML

name: Publish package to NPM
on:
push:
tags:
- 'v1.*.*'
permissions:
contents: write
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24.x
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Publish to NPM
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}