Skip to content

Commit

Permalink
chore(ci) publish bundle and push back to main (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriPro authored Jan 10, 2022
1 parent 54ca599 commit 84b5705
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ jobs:
# A file, directory or wildcard pattern that describes what to upload
path: dist/*
if-no-files-found: error
- name: Commit files
uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
run: |
date > generated.txt
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "publish new dist 🎉 "
git push
publish-npm:
needs: build
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
!package.json
!dist/swagger-ui.js
!dist/swagger-ui.js.map
!dist/swagger-ui-bundle.js
!dist/swagger-ui-bundle.js.map
!dist/swagger-ui-standalone-preset.js
!dist/swagger-ui-standalone-preset.js.map
!dist/swagger-ui.css
Expand Down

0 comments on commit 84b5705

Please sign in to comment.