File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 20
20
- uses : microsoft/playwright-github-action@v1
21
21
- run : npm ci
22
22
- run : npm run build
23
- - run : node utils/build/update_canary_version.js
23
+ # publish_all_packages.sh updates the version automatically
24
24
- run : utils/publish_all_packages.sh --tip-of-tree
25
25
env :
26
26
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 41
41
42
42
cd ..
43
43
44
- NPM_PUBLISH_TAG=" next"
45
- VERSION=$( node -e ' console.log(require("./package.json").version)' )
46
-
47
44
if [[ -n $( git status -s) ]]; then
48
45
echo " ERROR: git status is dirty; some uncommitted changes or untracked files"
49
46
exit 1
50
47
fi
51
48
49
+ NPM_PUBLISH_TAG=" next"
50
+
51
+ if [[ $1 == " --tip-of-tree" ]]; then
52
+ node utils/build/update_canary_version.js
53
+ fi
54
+ VERSION=$( node -e ' console.log(require("./package.json").version)' )
55
+
52
56
if [[ $1 == " --release" ]]; then
53
57
# Ensure package version does not contain dash.
54
58
if [[ " ${VERSION} " == * -* ]]; then
76
80
exit 1
77
81
fi
78
82
83
+ echo " ==================== Building version ${VERSION} ================"
84
+
79
85
PLAYWRIGHT_TGZ=" $PWD /playwright.tgz"
80
86
PLAYWRIGHT_CORE_TGZ=" $PWD /playwright-core.tgz"
81
87
PLAYWRIGHT_WEBKIT_TGZ=" $PWD /playwright-webkit.tgz"
@@ -87,6 +93,8 @@ node ./packages/build_package.js playwright-webkit "${PLAYWRIGHT_WEBKIT_TGZ}"
87
93
node ./packages/build_package.js playwright-firefox " ${PLAYWRIGHT_FIREFOX_TGZ} "
88
94
node ./packages/build_package.js playwright-chromium " ${PLAYWRIGHT_CHROMIUM_TGZ} "
89
95
96
+ echo " ==================== Publishing version ${VERSION} ================"
97
+
90
98
npm publish ${PLAYWRIGHT_TGZ} --tag=" ${NPM_PUBLISH_TAG} "
91
99
npm publish ${PLAYWRIGHT_CORE_TGZ} --tag=" ${NPM_PUBLISH_TAG} "
92
100
npm publish ${PLAYWRIGHT_WEBKIT_TGZ} --tag=" ${NPM_PUBLISH_TAG} "
You can’t perform that action at this time.
0 commit comments