fix(basic-information): consider maxLength of device properties #22
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: Release | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
packages: write | |
id-token: write | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
registry-url: https://registry.npmjs.org/ | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: nx cache | |
uses: actions/cache@v4 | |
with: | |
path: .nx | |
key: ${{ runner.os }}-nx | |
- run: npm ci | |
- run: npx nx release version | |
- name: Extract new Version | |
run: | | |
PACKAGE_VERSION=$(node -p "require('home-assistant-matter-hub/package.json').version") | |
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> "$GITHUB_ENV" | |
- run: npx nx release changelog --version $PACKAGE_VERSION | |
- run: npm run pull-request | |
- name: Commit, tag and push | |
run: | | |
git commit -m "chore: release v$PACKAGE_VERSION" | |
git tag -a v$PACKAGE_VERSION -m "Release v$PACKAGE_VERSION" -m "[skip ci]" | |
git push --follow-tags | |
- env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_CONFIG_PROVENANCE: false | |
run: npx nx release publish | |
- env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
gh release create v$PACKAGE_VERSION \ | |
--latest \ | |
--notes-file CHANGELOG.md \ | |
--title "v$PACKAGE_VERSION" \ | |
--verify-tag |