Skip to content

Merge pull request #645 from interlay/peter/feat-issue-custom-griefin… #282

Merge pull request #645 from interlay/peter/feat-issue-custom-griefin…

Merge pull request #645 from interlay/peter/feat-issue-custom-griefin… #282

Workflow file for this run

name: npm
on:
push:
tags:
- "*"
jobs:
publish:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
always-auth: true
- run: corepack enable
- run: yarn install
- run: yarn build
- run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
- run: echo ${RELEASE_VERSION}
- name: publish
run: |
git config --global user.email "${GITHUB_ACTOR}"
git config --global user.name "${GITHUB_ACTOR}"
yarn publish --access public --new-version ${RELEASE_VERSION}
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Generate changelog
run: |
git-chglog --output CHANGELOG.md $GITHUB_REF_NAME
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG.md