diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ab9cb1c --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index 2d9aa3a..b20078b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ lib node_modules /test/data/test-app.asar +.builds/ \ No newline at end of file diff --git a/.publishrc b/.publishrc index d1d9887..803225f 100644 --- a/.publishrc +++ b/.publishrc @@ -3,8 +3,8 @@ "vulnerableDependencies": false, "uncommittedChanges": true, "untrackedFiles": true, - "sensitiveData": true, - "branch": "master", + "sensitiveData": false, + "branch": false, "gitTag": true }, "confirm": false, diff --git a/package.json b/package.json index 42dc968..09ffb6d 100644 --- a/package.json +++ b/package.json @@ -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": [