diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 8906325..97a5da6 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -56,28 +56,30 @@ jobs: # Then uncomment the following block: # Deploys the final package to NPM -deploy: - needs: [check-and-lint, adapter-tests] - # Trigger this step only when a commit on any branch is tagged with a version number - if: | - contains(github.event.head_commit.message, '[skip ci]') == false && - github.event_name == 'push' && - startsWith(github.ref, 'refs/tags/v') + # Deploys the final package to NPM + deploy: + needs: [check-and-lint, adapter-tests] + + # Trigger this step only when a commit on any branch is tagged with a version number + if: | + contains(github.event.head_commit.message, '[skip ci]') == false && + github.event_name == 'push' && + startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest - # Write permissions are required to create Github releases - permissions: - contents: write + # Write permissions are required to create Github releases + permissions: + contents: write - steps: - - uses: ioBroker/testing-action-deploy@v1 - with: - node-version: '16.x' - # Uncomment the following line if your adapter cannot be installed using 'npm ci' - # install-command: 'npm install' - npm-token: ${{ secrets.NPM_TOKEN }} - github-token: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: ioBroker/testing-action-deploy@v1 + with: + node-version: '16.x' + # Uncomment the following line if your adapter cannot be installed using 'npm ci' + # install-command: 'npm install' + npm-token: ${{ secrets.NPM_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} # When using Sentry for error reporting, Sentry can be informed about new releases # To enable create a API-Token in Sentry (User settings, API keys)