Compare commits
No commits in common. "main" and "1.0.0-rc3" have entirely different histories.
@ -20,6 +20,7 @@ jobs:
|
||||
with:
|
||||
node-version: 20
|
||||
registry-url: 'https://registry.npmjs.org/'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install dependencies with Yarn
|
||||
run: yarn install --immutable
|
||||
@ -30,18 +31,15 @@ jobs:
|
||||
- name: Build library
|
||||
run: yarn build
|
||||
|
||||
- name: Determine npm tag based on release type
|
||||
- name: Determine npm tag
|
||||
id: determine_tag
|
||||
run: |
|
||||
# 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
|
||||
IS_PRERELEASE=${{ github.event.release.prerelease }}
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
if [[ "$VERSION" =~ -(alpha|beta|rc|dev) ]]; 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
|
||||
|
@ -15,7 +15,7 @@
|
||||
},
|
||||
"private": false,
|
||||
"license": "MIT",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.0",
|
||||
"description": "Vue 3 Composition API implementation for OpenHarbor data management.",
|
||||
"type": "module",
|
||||
"main": "./dist/vue-openharbor-data.umd.cjs",
|
||||
|
Loading…
Reference in New Issue
Block a user