Compare commits

..

No commits in common. "main" and "1.0.0-rc1" have entirely different histories.

2 changed files with 9 additions and 15 deletions

View File

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

View File

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