Compare commits

...

3 Commits

Author SHA1 Message Date
e3310a4ab2
new version to test
All checks were successful
Publish to npm / publish (release) Successful in 11s
2025-06-23 17:54:32 -04:00
5516a6f9c5
fix tag determination 2025-06-23 17:53:42 -04:00
4119a1fc7f
remove yarn cache
All checks were successful
Publish to npm / publish (release) Successful in 12s
2025-06-23 17:47:04 -04:00
2 changed files with 8 additions and 6 deletions

View File

@ -20,7 +20,6 @@ jobs:
with:
node-version: 20
registry-url: 'https://registry.npmjs.org/'
cache: 'yarn'
- name: Install dependencies with Yarn
run: yarn install --immutable
@ -31,15 +30,18 @@ jobs:
- name: Build library
run: yarn build
- name: Determine npm tag
- name: Determine npm tag based on release type
id: determine_tag
run: |
IS_PRERELEASE=${{ github.event.release.prerelease }}
VERSION=$(node -p "require('./package.json').version")
if [[ "$VERSION" =~ -(alpha|beta|rc|dev) ]]; then
# Access the prerelease flag from the Gitea release event payload
# ${{ github.event.release.prerelease }} is the standard GitHub Actions syntax
# Gitea Actions aims for compatibility, so this should work.
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
echo "NPM_TAG=dev" >> $GITHUB_OUTPUT
echo "::notice::Release is a pre-release. Publishing with 'dev' tag."
else
echo "NPM_TAG=latest" >> $GITHUB_OUTPUT
echo "::notice::Release is stable. Publishing with 'latest' tag."
fi
- name: Publish to npm

View File

@ -15,7 +15,7 @@
},
"private": false,
"license": "MIT",
"version": "1.0.0",
"version": "1.0.1",
"description": "Vue 3 Composition API implementation for OpenHarbor data management.",
"type": "module",
"main": "./dist/vue-openharbor-data.umd.cjs",