From bf6974f16af6c72985f094a98d874c5a6adcdc83 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Mon, 12 Feb 2024 21:41:49 +0200 Subject: [PATCH] chore(ci): add npm tag action; (#6231) --- .github/workflows/npm-tag.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/npm-tag.yml diff --git a/.github/workflows/npm-tag.yml b/.github/workflows/npm-tag.yml new file mode 100644 index 0000000..afd51d2 --- /dev/null +++ b/.github/workflows/npm-tag.yml @@ -0,0 +1,30 @@ +name: NPM Tag +on: + workflow_dispatch: + inputs: + version: + required: true + tag: + required: true + default: "latest" +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: + - uses: actions/checkout@v3 + - name: git config + run: | + git config user.name "${GITHUB_ACTOR}" + git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + - uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + ############# TAG RELEASE ############## + - name: Tag release + run: npm dist-tag add axios@${{ github.event.inputs.version }} ${{ github.event.inputs.tag }} + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}