Skip to content

NPM tag

NPM tag #3

Workflow file for this run

name: 'NPM tag'
on:
workflow_call:
inputs:
version:
type: string
tag:
type: string
workflow_dispatch:
inputs:
version:
type: string
tag:
type: string
jobs:
change_tags:
name: Change tags
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Change tags
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
TAG: ${{ inputs.tag }}
VERSION: ${{ inputs.version }}
if: env.NODE_AUTH_TOKEN != null
run: |
npm dist-tag ls @duckdb/duckdb-wasm@"${VERSION}"
npm dist-tag add @duckdb/duckdb-wasm@"${VERSION}" "${TAG}"
npm dist-tag ls @duckdb/duckdb-wasm@"${VERSION}"