Skip to content

v17.3.3-beta-1

v17.3.3-beta-1 #54

Workflow file for this run

name: publish to npmjs
on:
release:
# it is simpler to have separate release.yml and prerelease.yml workflows,
# however, on npm you can only associate one workflow as trusted (or however
# it's called exactly) - so we need to combine both in one workflow, with
# the if conditions on the steps.
types: [released, prereleased]
jobs:
publish:
environment: npm
if: github.repository == 'sverweij/dependency-cruiser'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24.x
registry-url: https://registry.npmjs.org
- run: npm clean-install
- name: publish as latest
run: npm publish --provenance --access public
if: github.event.release.prerelease == false
- name: publish as beta
run: npm publish --provenance --access public --tag beta
if: github.event.release.prerelease == true