Skip to content

Commit 621a0ea

Browse files
committed
Revert "remove ts bundle"
This reverts commit 929fb09.
1 parent 929fb09 commit 621a0ea

11 files changed

Lines changed: 335 additions & 7 deletions

File tree

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636

3737
- name: Run Tests
3838
run: npm test
39+
3940
require-build:
4041
name: Require Build in PR
4142
runs-on: ubuntu-latest
@@ -61,4 +62,3 @@ jobs:
6162
echo "$STATUS"
6263
exit 1
6364
fi
64-

actions/release-tag-creation/action.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,12 @@ outputs:
3636
runs:
3737
using: composite
3838
steps:
39-
- name: Install dependencies
40-
shell: bash
41-
run: npm ci --prefix "${{ github.action_path }}"
42-
4339
- name: Handle version input
4440
id: handle-version-input
4541
shell: bash
4642
env:
4743
INPUT_VERSION: ${{ inputs.version }}
48-
run: node "${{ github.action_path }}/main.ts"
44+
run: node "${{ github.action_path }}/dist/index.js"
4945

5046
- name: Switch to release branch
5147
shell: bash
@@ -65,7 +61,7 @@ runs:
6561
env:
6662
INPUT_VERSION: ${{ inputs.version }}
6763
INPUT_CHANNEL: ${{ steps.handle-version-input.outputs.channel }}
68-
run: node "${{ github.action_path }}/update-version-files.ts"
64+
run: node "${{ github.action_path }}/dist/update-version-files.js"
6965

7066
- name: Commit version bump
7167
shell: bash

actions/release-tag-creation/dist/index.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/release-tag-creation/dist/update-version-files.js

Lines changed: 73 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { run } from './main';
2+
3+
run();

actions/release-tag-creation/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"license": "GPL-3.0-or-later",
55
"private": true,
66
"scripts": {
7+
"build": "tsup --config ./tsup.config.ts",
8+
"dev": "npm run build -- --watch",
79
"test": "vitest run",
810
"test:watch": "vitest"
911
},
@@ -14,6 +16,7 @@
1416
},
1517
"devDependencies": {
1618
"@types/semver": "^7.5.8",
19+
"tsup": "^8.5.0",
1720
"vitest": "^4.1.9"
1821
}
1922
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'tsup';
2+
3+
export default defineConfig({
4+
entry: ['index.ts', 'update-version-files.ts'],
5+
outDir: 'dist',
6+
format: 'cjs',
7+
noExternal: [/.+/],
8+
platform: 'node',
9+
minify: true,
10+
clean: true,
11+
});

actions/run-lighthouse-tests/dist/index.js

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/setup-elementor-env/dist/index.js

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/setup-wp-env/dist/index.js

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)