Skip to content

Commit

Permalink
build: added publish workflow (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey28 authored Oct 10, 2023
1 parent 90e576d commit 3f08142
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
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

0 comments on commit 3f08142

Please sign in to comment.