Skip to content

API-DocumentationV3-Publish #15

API-DocumentationV3-Publish

API-DocumentationV3-Publish #15

Workflow file for this run

name: Publish Package to npmjs
on:
repository_dispatch:
types: [API-DocumentationV3-Publish]
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20.10.0'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
github-release:
name: >-
Upload to Github Release
needs:
- build-and-publish
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--notes ""