File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 3232
3333echo " Releasing to $version branch..."
3434
35+ rm -rf dist
36+
3537set -x
3638npm install
3739npm run build
@@ -42,21 +44,24 @@ npm prune --production
4244rm -rf .release
4345mkdir -p .release
4446
45- cp action.yml src/* .js package.json package-lock.json .release/
47+ cp action.yml package.json package-lock.json .release/
48+ rsync -R dist/src/* .js .release/
4649cp -R node_modules .release/node_modules
4750
4851git checkout " $version "
4952git pull
5053git rm -rf node_modules
5154rm -rf node_modules # remove node_modules/.cache
52- mkdir -p src
55+
56+ rm -rf dist
57+ mkdir -p dist/src
5358
5459mv .release/action.yml .
55- mv .release/* .js ./src /
60+ mv .release/dist/src/ ./dist /
5661mv .release/* .json .
5762mv .release/node_modules .
5863
59- git add action.yml ./src/* .js package.json package-lock.json node_modules
64+ git add action.yml ./dist/ src/* .js package.json package-lock.json node_modules
6065set +x
6166
6267echo " Done. Please check 'git diff --cached' to verify changes. If ok, add version tag and push it to remote"
You can’t perform that action at this time.
0 commit comments