Skip to content
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d37be9f
removed dev from version
kpal81xd May 12, 2025
278a4d9
Add CommonJS support to ESLint config and improve console log formatt…
kpal81xd May 12, 2025
12e8cee
WIP: release script updated version
kpal81xd May 12, 2025
65b9d26
Fix release script to use current branch name and improve branch hand…
kpal81xd May 12, 2025
5e77b24
Simplify finalization prompt in release script by removing tag existe…
kpal81xd May 12, 2025
2fa2ea2
Add git fetch command to ensure remote tags are available before fina…
kpal81xd May 12, 2025
efb14d4
Refactor condition check for branch type in release script
kpal81xd May 12, 2025
27ebdf4
Add comments to clarify branch checks in release script
kpal81xd May 12, 2025
8b5b753
Normalize prompt responses in release script for consistency
kpal81xd May 12, 2025
88d6d88
Changed main branch to main
kpal81xd May 12, 2025
3ac6b92
Merge branch 'main' into version
kpal81xd May 12, 2025
16624f5
Enhance help message and usage instructions in release script
kpal81xd May 12, 2025
7fd54f0
Add comment to clarify release type determination in release script
kpal81xd May 12, 2025
18d4d5d
Update prompt message for finalizing release to include release type
kpal81xd May 12, 2025
118b031
Refactor release script to improve prompt message and ensure prerelea…
kpal81xd May 12, 2025
35dbd52
Refactor release script to use variables for prerelease identifiers a…
kpal81xd May 12, 2025
ea6b296
Add checks for uncommitted changes and streamline version calculation…
kpal81xd May 12, 2025
af3f6aa
Update publish workflow to use 'preview' tag instead of 'alpha' for p…
kpal81xd May 12, 2025
c06ec18
Remove npm version command from pre-release tag detection in publish …
kpal81xd May 12, 2025
ee01059
Merge branch 'main' into version
kpal81xd May 13, 2025
0f16455
Add publishing step to code.playcanvas.com in workflow
kpal81xd May 13, 2025
6f6ff9a
Fix engine version variable in PlayCanvas publish step
kpal81xd May 13, 2025
4de1e46
Refactor tag parsing and publishing logic in workflow
kpal81xd May 13, 2025
513a5ad
Fix tag condition in npm publish step to use regex for preview detection
kpal81xd May 13, 2025
6e43f67
Add silent flag to curl command for PlayCanvas publishing step
kpal81xd May 13, 2025
8452522
Fix curl command in PlayCanvas publishing step to handle errors
kpal81xd May 13, 2025
bc05b07
Remove deprecated CommonJS configuration and release script
kpal81xd May 13, 2025
1364b39
Merge branch 'main' into version
kpal81xd May 14, 2025
60d27e2
fix: Update PlayCanvas publish endpoint to use secret variable
kpal81xd May 14, 2025
975cf7e
Update .github/workflows/publish.yaml
kpal81xd May 14, 2025
2442f24
Merge branch 'main' into version
kpal81xd May 14, 2025
1546680
Update release.sh
kpal81xd May 14, 2025
e98e643
Update release.sh
kpal81xd May 14, 2025
c67f4a0
Update release.sh
kpal81xd May 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-preview.[0-9]+'

jobs:
publish-npm:
Expand All @@ -20,17 +20,11 @@ jobs:
cache: 'npm'
registry-url: 'https://registry.npmjs.org/'

- name: Determine pre-release tag
id: release-tag
- name: Parse tag name
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "Detected tag: $TAG_NAME"
if [[ "$TAG_NAME" == *-alpha.* ]]; then
echo "tag=alpha" >> $GITHUB_ENV
npm version --no-git-tag-version $TAG_NAME
else
echo "tag=latest" >> $GITHUB_ENV
fi
echo "TAG=${TAG_NAME}" >> $GITHUB_ENV
echo "VERSION=${TAG_NAME/v/}" >> $GITHUB_ENV

- name: Install Dependencies
run: npm install
Expand All @@ -42,6 +36,20 @@ jobs:
run: npm run publint

- name: Publish to npm
run: npm publish --tag ${{ env.tag }}
run: |
if [[ "${{ env.TAG }}" =~ "preview" ]]; then
tag=preview
else
tag=latest
fi
npm publish --tag $tag
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to code.playcanvas.com
run: |
if ! curl -sS -X POST -H "Content-Type: application/json" \
-d '{ "engineVersion": "${{ env.VERSION }}" }' ${{ secrets.PUBLISH_ENDPOINT }} then
echo "Failed to publish to code.playcanvas.com"
exit 1
fi
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playcanvas",
"version": "2.8.0-dev",
"version": "2.8.0-dev.0",
"author": "PlayCanvas <[email protected]>",
"homepage": "https://playcanvas.com",
"description": "PlayCanvas WebGL game engine",
Expand Down
242 changes: 0 additions & 242 deletions release.cjs

This file was deleted.

Loading