Skip to content

Commit

Permalink
fix workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Nov 17, 2023
1 parent 9c2ba0a commit 8cc1126
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ name: Test and Release
on:
push:
branches:
- "main"
- 'main'
tags:
# normal versions
- "v[0-9]+.[0-9]+.[0-9]+"
- 'v[0-9]+.[0-9]+.[0-9]+'
# pre-releases
- "v[0-9]+.[0-9]+.[0-9]+-**"
- 'v[0-9]+.[0-9]+.[0-9]+-**'
pull_request: {}

# Cancel previous PR/branch runs when a new commit is pushed
Expand Down Expand Up @@ -51,42 +51,42 @@ jobs:
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
# install-command: 'npm install'

# TODO: To enable automatic npm releases, create a token on npmjs.org
# Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
# Then uncomment the following block:
# TODO: To enable automatic npm releases, create a token on npmjs.org
# Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
# Then uncomment the following block:

# Deploys the final package to NPM
deploy:
needs: [check-and-lint, adapter-tests]
# 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')
# 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
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: '18.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: '18.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)
# Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
# Then uncomment and customize the following block:
sentry: true
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
sentry-project: "iobroker-boschindego"
sentry-version-prefix: "iobroker.boschindego"
# If your sentry project is linked to a GitHub repository, you can enable the following option
# sentry-github-integration: true
# 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)
# Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
# Then uncomment and customize the following block:
sentry: true
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
sentry-project: 'iobroker-boschindego'
sentry-version-prefix: 'iobroker.boschindego'
# If your sentry project is linked to a GitHub repository, you can enable the following option
# sentry-github-integration: true

0 comments on commit 8cc1126

Please sign in to comment.