@@ -93,121 +93,121 @@ jobs:
9393 - name : Run Playwright tests
9494 run : pnpm test
9595
96- upload :
97- name : Upload release
98- runs-on : ubuntu-latest
99- needs : [build, tests]
100- permissions : write-all
101- if : github.ref == 'refs/heads/main'
102-
103- steps :
104- - name : Delete old release and tag
105- uses :
dev-drprasad/[email protected] 106- with :
107- delete_release : true
108- tag_name : latest
109- github_token : ${{ github.token }}
110-
111- - name : Get artifacts
112- uses : actions/download-artifact@v4
113- with :
114- name : packaged-scramjet
115- path : .
116-
117- - name : Release to GitHub
118- uses : ncipollo/release-action@v1
119- with :
120- name : Continuous Build
121- tag : latest
122- commit : main
123- body : " ${{ github.event.head_commit.url }} ${{ github.event.head_commit.message }}"
124- artifacts : " mercuryworkshop-scramjet-*.tgz"
125- prerelease : true
126-
127- publish :
128- name : Publish Scramjet to NPM
129- runs-on : ubuntu-latest
130- needs : [build, tests]
131- if : false
132- permissions : write-all
133- steps :
134- - name : Setup Node.js
135- uses : actions/setup-node@v2
136- with :
137- node-version : " 20"
138- registry-url : " https://registry.npmjs.org"
139-
140- - name : Get artifacts
141- uses : actions/download-artifact@v4
142- with :
143- name : packaged-scramjet
144- path : .
145-
146- - name : Extract package
147- run : tar xvf mercuryworkshop-scramjet-*.tgz package --strip-components=1
148-
149- - name : Check the version
150- id : check
151- run : |
152- CURRENT_VERSION=$(jq -r .version package.json)
153- echo "Current version: $CURRENT_VERSION"
154- LATEST_VERSION=$(npm view @mercuryworkshop/scramjet version || echo "0.0.0")
155- echo "Latest NPM version: $LATEST_VERSION"
156-
157- if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ];
158- then
159- echo "Version changed"
160- echo "version_changed=true" >> $GITHUB_OUTPUT
161- echo "new_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
162- else
163- echo "Version not changed"
164- echo "version_changed=false" >> $GITHUB_OUTPUT
165- fi
166-
167- - name : Publish
168- if : steps.check.outputs.version_changed == 'true'
169- run : npm publish --access public --no-git-checks
170- env :
171- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
172-
173- pages :
174- name : Upload to Github Pages
175- runs-on : ubuntu-latest
176- needs : [build, tests]
177- permissions : write-all
178- if : github.ref == 'refs/heads/main'
179- steps :
180- - name : Checkout code
181- uses : actions/checkout@v4
182-
183- - name : Setup pnpm
184- uses : pnpm/action-setup@v4
185- with :
186- version : latest
187-
188- - name : Setup Node.js
189- uses : actions/setup-node@v4
190- with :
191- node-version : " 22"
192- cache : " pnpm"
193-
194- - name : Install dependencies
195- run : pnpm install
196-
197- - name : Get artifacts
198- uses : actions/download-artifact@v4
199- with :
200- name : scramjet
201- path : dist
202-
203- - name : build statics
204- run : bash ./ci/buildstatic.sh
205-
206- - name : upload pages artifact
207- uses : actions/upload-pages-artifact@v3
208- with :
209- path : " ./staticbuild"
210-
211- - name : deploy to github
212- id : deployment
213- uses : actions/deploy-pages@v4
96+ # upload:
97+ # name: Upload release
98+ # runs-on: ubuntu-latest
99+ # needs: [build, tests]
100+ # permissions: write-all
101+ # if: github.ref == 'refs/heads/main'
102+
103+ # steps:
104+ # - name: Delete old release and tag
105+ # uses: dev-drprasad/[email protected] 106+ # with:
107+ # delete_release: true
108+ # tag_name: latest
109+ # github_token: ${{ github.token }}
110+
111+ # - name: Get artifacts
112+ # uses: actions/download-artifact@v4
113+ # with:
114+ # name: packaged-scramjet
115+ # path: .
116+
117+ # - name: Release to GitHub
118+ # uses: ncipollo/release-action@v1
119+ # with:
120+ # name: Continuous Build
121+ # tag: latest
122+ # commit: main
123+ # body: "${{ github.event.head_commit.url }} ${{ github.event.head_commit.message }}"
124+ # artifacts: "mercuryworkshop-scramjet-*.tgz"
125+ # prerelease: true
126+
127+ # publish:
128+ # name: Publish Scramjet to NPM
129+ # runs-on: ubuntu-latest
130+ # needs: [build, tests]
131+ # if: false
132+ # permissions: write-all
133+ # steps:
134+ # - name: Setup Node.js
135+ # uses: actions/setup-node@v2
136+ # with:
137+ # node-version: "20"
138+ # registry-url: "https://registry.npmjs.org"
139+
140+ # - name: Get artifacts
141+ # uses: actions/download-artifact@v4
142+ # with:
143+ # name: packaged-scramjet
144+ # path: .
145+
146+ # - name: Extract package
147+ # run: tar xvf mercuryworkshop-scramjet-*.tgz package --strip-components=1
148+
149+ # - name: Check the version
150+ # id: check
151+ # run: |
152+ # CURRENT_VERSION=$(jq -r .version package.json)
153+ # echo "Current version: $CURRENT_VERSION"
154+ # LATEST_VERSION=$(npm view @mercuryworkshop/scramjet version || echo "0.0.0")
155+ # echo "Latest NPM version: $LATEST_VERSION"
156+
157+ # if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ];
158+ # then
159+ # echo "Version changed"
160+ # echo "version_changed=true" >> $GITHUB_OUTPUT
161+ # echo "new_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
162+ # else
163+ # echo "Version not changed"
164+ # echo "version_changed=false" >> $GITHUB_OUTPUT
165+ # fi
166+
167+ # - name: Publish
168+ # if: steps.check.outputs.version_changed == 'true'
169+ # run: npm publish --access public --no-git-checks
170+ # env:
171+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
172+
173+ # pages:
174+ # name: Upload to Github Pages
175+ # runs-on: ubuntu-latest
176+ # needs: [build, tests]
177+ # permissions: write-all
178+ # if: github.ref == 'refs/heads/main'
179+ # steps:
180+ # - name: Checkout code
181+ # uses: actions/checkout@v4
182+
183+ # - name: Setup pnpm
184+ # uses: pnpm/action-setup@v4
185+ # with:
186+ # version: latest
187+
188+ # - name: Setup Node.js
189+ # uses: actions/setup-node@v4
190+ # with:
191+ # node-version: "22"
192+ # cache: "pnpm"
193+
194+ # - name: Install dependencies
195+ # run: pnpm install
196+
197+ # - name: Get artifacts
198+ # uses: actions/download-artifact@v4
199+ # with:
200+ # name: scramjet
201+ # path: dist
202+
203+ # - name: build statics
204+ # run: bash ./ci/buildstatic.sh
205+
206+ # - name: upload pages artifact
207+ # uses: actions/upload-pages-artifact@v3
208+ # with:
209+ # path: "./staticbuild"
210+
211+ # - name: deploy to github
212+ # id: deployment
213+ # uses: actions/deploy-pages@v4
0 commit comments