Skip to content

chore: remove require #39

chore: remove require

chore: remove require #39

Workflow file for this run

on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: npm install
- name: Determine npm tag
id: npm_tag
run: |
version=$(node -p "require('./package.json').version")
if [[ $version == *"-rc"* ]]; then
echo "tag=rc" >> $GITHUB_ENV
else
echo "tag=latest" >> $GITHUB_ENV
fi
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ env.tag }}
ignore-scripts: false