Add matomo code #108
This file contains hidden or 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: Main | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-build-test: | |
| uses: ./.github/workflows/lint_build_test.yml | |
| secrets: inherit | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| needs: | |
| - lint-build-test | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: write # Required to create the release | |
| pull-requests: write # Required to create the release PR | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: yarn | |
| - name: Install project dependencies | |
| run: yarn install | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true | |
| - name: Download build artifact | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: Loock | |
| - name: Lint packages | |
| run: yarn publint | |
| - name: Update NPM to latest version | |
| run: npm install -g npm@latest | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| publish: yarn changeset publish | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: "" |