Skip to content

node-mlx v0.2.1

node-mlx v0.2.1 #30

Workflow file for this run

name: npm-publish
on:
release:
types: [published]
jobs:
post-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get tag
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set package version
run: |
npm config set git-tag-version=false
npm version $VERSION
- name: Install deps
run: |
yarn
yarn prepack
yarn test
- name: Publish npm package
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: public