Skip to content

Release & Publish to NPM #12

Release & Publish to NPM

Release & Publish to NPM #12

Workflow file for this run

name: Release & Publish to NPM
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
- name: Setup
uses: ./.github/actions/setup
- name: Initialise the NPM config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Initialize Git user
run: |
git config --global user.email "dev@contentpass.de"
git config --global user.name "Release Workflow"
- name: Log git status
run: git status
- name: Run release
run: npm run release --ci
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}