Skip to content

Merge pull request #727 from bvotteler/feat-enable-vault-withdraw-all… #295

Merge pull request #727 from bvotteler/feat-enable-vault-withdraw-all…

Merge pull request #727 from bvotteler/feat-enable-vault-withdraw-all… #295

Workflow file for this run

name: npm
on:
push:
tags:
- "*"
jobs:
publish:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: "18"
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