Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 927f9b5

Browse files
committed
fix(release.yaml): update
1 parent fc1f634 commit 927f9b5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/relase.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
branches: [main, master]
99

1010
jobs:
11-
test-and-publish:
12-
name: Run test and publish
11+
test-and-e2e:
12+
name: Run test and e2e
1313
timeout-minutes: 60
1414
runs-on: ubuntu-latest
1515
steps:
@@ -24,20 +24,15 @@ jobs:
2424
npm install -g pnpm
2525
pnpm install
2626
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
3429

3530
- name: Install e2e dependencies
3631
run: |
3732
cd e2e/site
3833
pnpm install
3934
40-
- name: Copy local typedcssx
35+
- name: Copy new dist
4136
run: |
4237
rm -rf e2e/site/node_modules/typedcssx/dist
4338
cp -r dist e2e/site/node_modules/typedcssx/
@@ -71,12 +66,17 @@ jobs:
7166
path: playwright-report/
7267
retention-days: 30
7368

69+
release:
70+
runs-on: ubuntu-latest
71+
needs: ['test-and-e2e']
72+
permissions:
73+
id-token: write
74+
steps:
7475
- name: Publish package
75-
if: success()
7676
run: |
7777
mkdir publish
7878
cp -r bin compiler dist next license readme.md npm/package.json ./publish
7979
cd publish
80-
npm publish
80+
npm publish --provenance
8181
env:
8282
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)