Skip to content

add new fee types (#106) #65

add new fee types (#106)

add new fee types (#106) #65

name: Squid Types Release
on:
push:
branches:
- main
jobs:
release:
name: Release Squid Types package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Install dependencies
run: |
yarn install
yarn build
- name: Publish to NPM
id: publish
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
package: "./package.json"
- if: ${{ steps.publish.outputs.type != 'none' }}
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"