Skip to content

Fixed asset trx

Fixed asset trx #17

Workflow file for this run

name: build-publish
on:
push:
branches: [main]
jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Check if publish is required
uses: EndBug/version-check@v2
id: version-check
with:
file-url: https://unpkg.com/@kitzen/assets@latest/package.json
static-checking: localIsNew
- name: Publish a new version
if: steps.version-check.outputs.changed == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npm publish