Skip to content

Merge pull request #738 from interlay/dependabot/npm_and_yarn/typescr… #296

Merge pull request #738 from interlay/dependabot/npm_and_yarn/typescr…

Merge pull request #738 from interlay/dependabot/npm_and_yarn/typescr… #296

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-file: '.nvmrc'
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@v2
with:
body_path: CHANGELOG.md