Compare commits

..

5 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
34da92fc31
test3
Some checks failed
Publish to npm / publish (release) Has been cancelled
2025-06-23 17:45:53 -04:00
651dd2c2a0
changed pipeline to use yarn for install and build
Some checks failed
Publish to npm / publish (release) Failing after 3s
2025-06-23 17:44:22 -04:00
2 changed files with 15 additions and 9 deletions

View File

@ -12,30 +12,36 @@ 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 - name: Install dependencies with Yarn
run: npm ci run: yarn install --immutable
- name: Run type check - name: Run type check
run: npm run type-check run: yarn type-check
- name: Build library - name: Build library
run: npm run build run: yarn build
- name: Determine npm tag - name: Determine npm tag based on release type
id: determine_tag id: determine_tag
run: | run: |
IS_PRERELEASE=${{ github.event.release.prerelease }} # Access the prerelease flag from the Gitea release event payload
VERSION=$(node -p "require('./package.json').version") # ${{ github.event.release.prerelease }} is the standard GitHub Actions syntax
if [[ "$VERSION" =~ -(alpha|beta|rc|dev) ]]; then # Gitea Actions aims for compatibility, so this should work.
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.0", "version": "1.0.1",
"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",