Merge branch '2-dev' into beta #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push checks | |
on: | |
push: | |
branches: | |
- master | |
- beta | |
jobs: | |
release-device-manager: | |
name: Release package | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "lts/*" | |
registry-url: "https://registry.npmjs.org" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
SEMANTIC_RELEASE_NPM_PUBLISH: "true" | |
SEMANTIC_RELEASE_SLACK_WEBHOOK: ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }} | |
run: npx semantic-release | |
- name: Build type package | |
run: npm -prefix ./types run build | |
- name: Publish package | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: cd types && npm publish | |
documentation_deploy: | |
needs: [release-device-manager] | |
name: Documentation - Deploy | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN_CI }} | |
- uses: convictional/trigger-workflow-and-wait@v1.6.3 | |
with: | |
owner: kuzzleio | |
repo: documentation | |
github_token: ${{ secrets.ACCESS_TOKEN_CI }} | |
workflow_file_name: child_repo.workflow.yml | |
ref: ${{ github.ref_name == 'master' && 'master' || 'develop' }} | |
client_payload: '{"repo_name":"kuzzle-plugin-device-manager","branch":"${{ github.ref_name }}","version":"1"}' |