Skip to content

update README.md

update README.md #37

Workflow file for this run

name: Publish
on:
push:
branches: [main]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 24.x
registry-url: "https://registry.npmjs.org"
- run: |
npm i
npm run build
# check if the last release is the same as the current version
lastVersion=$(npm show @rage-against-the-pixel/unity-cli version)
version=$(node -p "require('./package.json').version")
if [ "$version" = "$lastVersion" ]; then
echo "No changes detected"
exit 0
fi
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}