Skip to content

dry run sem release #148

dry run sem release

dry run sem release #148

Workflow file for this run

name: "[v4-client-js] Publish Image to NPM"
on: # yamllint disable-line rule:truthy
push:
paths:
- 'v4-client-js/**'
branches:
- main
- test-release
# Ensure only a single instance of this workflow is running.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./v4-client-js
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all history for all tags and branches
- name: Npm
uses: actions/setup-node@v3
with:
node-version: 20.8.1
registry-url: https://registry.npmjs.org
cache: "npm"
cache-dependency-path: '**/package-lock.json'
- name: Install
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_READ }}
# Run semantic-release to automatically bump the version based on PR title
- name: Run semantic-release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_WRITE }}
# - name: Publish
# run: ./scripts/publish-if-not-exists.sh
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_WRITE }}