Skip to content

Commit

Permalink
Add dist/ to .gitignore
Browse files Browse the repository at this point in the history
- Add `dist/` to `.gitignore` to prevent committing files during
  development.
- Update pipeline to use `--force` flag to update `dist/` folder
- Bump `upload-artifact` to latest`
  • Loading branch information
undergroundwires committed Dec 28, 2024
1 parent 6465ef2 commit c68c603
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
git config user.name "$(git log -1 --pretty=format:'%an')" || exit 1
git config user.email "$(git log -1 --pretty=format:'%ae')" || exit 1
git add 'dist/' || exit 1
git add 'dist/' --force || exit 1
git commit --amend --no-edit || exit 1
git push -f || exit 1
Expand All @@ -56,15 +56,15 @@ jobs:
- name: Checkout to bump commit
run: git checkout "$(git rev-list "${{ github.event.release.tag_name }}"..master | tail -1)"
- run: |
mkdir "../artifact"
cp -r . "../artifact"
rm -rf "../artifact/.git"
rm -rf "../artifact/.github"
rm -rf "../artifact/node_modules"
- uses: actions/upload-artifact@v1
mkdir "/tmp/artifact"
cp -r . "/tmp/artifact"
rm -rf "/tmp/artifact/.git"
rm -rf "/tmp/artifact/.github"
rm -rf "/tmp/artifact/node_modules"
- uses: actions/upload-artifact@v4
with:
name: package
path: ../artifact
path: /tmp/artifact

publish-package:
needs: create-package
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
dist/

0 comments on commit c68c603

Please sign in to comment.