Skip to content

Commit 9cdd913

Browse files
ci: include package.json in the build
1 parent aa71cce commit 9cdd913

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ jobs:
4343
yarn build
4444
4545
- name: Upload Artifacts
46-
uses: actions/upload-artifact@v2
46+
uses: actions/upload-artifact@v3
4747
with:
48-
name: dist
49-
path: dist
48+
name: artifacts
49+
path: |
50+
dist
51+
./package.json
5052
5153
commit-build:
5254
needs: build
@@ -58,17 +60,16 @@ jobs:
5860
ref: release
5961

6062
- name: Download Build
61-
uses: actions/download-artifact@v2
63+
uses: actions/download-artifact@v3
6264
with:
63-
name: dist
64-
path: dist
65+
name: artifacts
6566

6667
- name: Commit and Push
6768
run: |
6869
if [ $(git status dist --porcelain=v1 2>/dev/null | wc -l) != "0" ] ; then
6970
git config user.name "GitHub Actions"
7071
git config user.email [email protected]
71-
git add dist
72+
git add .
7273
git commit -m "chore: updated build"
7374
git push origin HEAD --force
7475
fi

0 commit comments

Comments
 (0)