Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: added publish workflow #107

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish

on:
release:
types: [published]

jobs:
publish:
if: ${{ !github.event.release.draft }}
runs-on: ubuntu-latest
environment: release
steps:
- uses: DevExpress/testcafe-build-system/actions/publish-with-publish-please@main
with:
token: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
lib
node_modules
/test/data/test-app.asar
.builds/
4 changes: 2 additions & 2 deletions .publishrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"vulnerableDependencies": false,
"uncommittedChanges": true,
"untrackedFiles": true,
"sensitiveData": true,
"branch": "master",
"sensitiveData": false,
"branch": false,
"gitTag": true
},
"confirm": false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"scripts": {
"test": "gulp test",
"publish-please": "del-cli package-lock.json node_modules && npm i && publish-please",
"publish-please": "del-cli node_modules && npm i && publish-please",
"prepublish": "publish-please guard"
},
"keywords": [
Expand Down