Skip to content

chore(deps-dev): bump tsup from 8.3.0 to 8.3.5 in /libraries/js (#203) #27

chore(deps-dev): bump tsup from 8.3.0 to 8.3.5 in /libraries/js (#203)

chore(deps-dev): bump tsup from 8.3.0 to 8.3.5 in /libraries/js (#203) #27

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Deploy NPM Hash
on:
push:
branches: ["main", "chore/v2"]
jobs:
publish-npm-rc:
name: Publish NPM Hash
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache-dependency-path: libraries/js/package-lock.json
- name: Install dependencies
working-directory: libraries/js
run: npm i
- name: build
working-directory: libraries/js
run: npm run build
- name: Version Package
env:
FULL_SHA: ${{github.sha}}
working-directory: libraries/js/dist
shell: bash
run: npm version --new-version "v0.0.0-${FULL_SHA:0:6}" --no-git-tag-version
# Required for Granular Access Tokens
- name: NPM Access Config
run: npm config set //registry.npmjs.org/:_authToken ${{secrets.NPM_AUTH_TOKEN}}
- name: Publish 0.0.0-<SHA:6> on NPM
working-directory: libraries/js/dist
run: npm publish --verbose --access public