Skip to content

Publish v1.0.51

Publish v1.0.51 #83

Workflow file for this run

name: Library Publish
on:
push:
tags:
- "*"
env:
NODE_VERSION: 20
NODE_CACHE: "yarn"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: ${{ env.NODE_CACHE }}
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: yarn install --immutable
- name: Get package version
id: package-version
uses: martinbeentjes/[email protected]
- name: Build library
run: yarn build
- name: Publish library
run: |
yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
yarn npm publish --tag ${{ steps.package-version.outputs.current-version }} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Read changelog entry for version
id: read-changelog
uses: mindsers/[email protected]
with:
version: "${{ steps.package-version.outputs.current-version }}"
path: ./CHANGELOG.md
- name: Create release
uses: softprops/[email protected]
with:
prerelease: false
body: ${{ steps.read-changelog.outputs.changes }}