Skip to content

Commit cc3f196

Browse files
committed
feat: enable deployment step in GitHub Actions workflow
1 parent eba6cc7 commit cc3f196

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/test-and-release.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,30 +58,30 @@ jobs:
5858
# Then uncomment the following block:
5959

6060
# # Deploys the final package to NPM
61-
# deploy:
62-
# needs: [check-and-lint, adapter-tests]
63-
#
61+
deploy:
62+
needs: [check-and-lint, adapter-tests]
63+
6464
# # Trigger this step only when a commit on any branch is tagged with a version number
65-
# if: |
66-
# contains(github.event.head_commit.message, '[skip ci]') == false &&
67-
# github.event_name == 'push' &&
68-
# startsWith(github.ref, 'refs/tags/v')
69-
#
70-
# runs-on: ubuntu-latest
71-
#
65+
if: |
66+
contains(github.event.head_commit.message, '[skip ci]') == false &&
67+
github.event_name == 'push' &&
68+
startsWith(github.ref, 'refs/tags/v')
69+
70+
runs-on: ubuntu-latest
71+
7272
# # Write permissions are required to create Github releases
73-
# permissions:
74-
# id-token: write
75-
# contents: write
76-
#
77-
# steps:
78-
# - uses: ioBroker/testing-action-deploy@v1
79-
# with:
80-
# node-version: '20.x'
81-
# # Uncomment the following line if your adapter cannot be installed using 'npm ci'
82-
# # install-command: 'npm install'
83-
# build: true
84-
# github-token: ${{ secrets.GITHUB_TOKEN }}
73+
permissions:
74+
id-token: write
75+
contents: write
76+
77+
steps:
78+
- uses: ioBroker/testing-action-deploy@v1
79+
with:
80+
node-version: '20.x'
81+
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
82+
# install-command: 'npm install'
83+
build: true
84+
github-token: ${{ secrets.GITHUB_TOKEN }}
8585
#
8686
# # When using Sentry for error reporting, Sentry can be informed about new releases
8787
# # To enable create a API-Token in Sentry (User settings, API keys)

0 commit comments

Comments
 (0)