This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 8
8
branches : [main, master]
9
9
10
10
jobs :
11
- test-and-publish :
12
- name : Run test and publish
11
+ test-and-e2e :
12
+ name : Run test and e2e
13
13
timeout-minutes : 60
14
14
runs-on : ubuntu-latest
15
15
steps :
@@ -24,20 +24,15 @@ jobs:
24
24
npm install -g pnpm
25
25
pnpm install
26
26
27
- - name : Compile TypeScript
28
- run : npx tsc
29
-
30
- - name : Copy styles to dist
31
- run : |
32
- mkdir -p dist/core
33
- cp -r src/core/styles dist/core/
27
+ - name : Compile and create dist
28
+ run : npm run build
34
29
35
30
- name : Install e2e dependencies
36
31
run : |
37
32
cd e2e/site
38
33
pnpm install
39
34
40
- - name : Copy local typedcssx
35
+ - name : Copy new dist
41
36
run : |
42
37
rm -rf e2e/site/node_modules/typedcssx/dist
43
38
cp -r dist e2e/site/node_modules/typedcssx/
@@ -71,12 +66,17 @@ jobs:
71
66
path : playwright-report/
72
67
retention-days : 30
73
68
69
+ release :
70
+ runs-on : ubuntu-latest
71
+ needs : ['test-and-e2e']
72
+ permissions :
73
+ id-token : write
74
+ steps :
74
75
- name : Publish package
75
- if : success()
76
76
run : |
77
77
mkdir publish
78
78
cp -r bin compiler dist next license readme.md npm/package.json ./publish
79
79
cd publish
80
- npm publish
80
+ npm publish --provenance
81
81
env :
82
82
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments