Document publish-time version assignment (#64) #162
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: {} | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| persist-credentials: false | |
| - name: Lint shell scripts | |
| run: shellcheck install.sh run.sh tests/install.test.sh tests/mocks/* | |
| - name: Test installer verification | |
| run: bash tests/install.test.sh | |
| - name: Validate action.yml | |
| run: | | |
| npm install -g @action-validator/cli | |
| action-validator action.yml | |
| test-install: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| persist-credentials: false | |
| - name: Test CLI installation | |
| run: | | |
| bash install.sh | |
| ./linear-release --version | |
| env: | |
| CLI_VERSION: latest | |
| RUNNER_OS: ${{ runner.os }} | |
| GITHUB_TOKEN: ${{ github.token }} | |
| sync-release: | |
| name: Sync release management | |
| needs: [lint, test-install] | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/run-linear-release.yml | |
| with: | |
| action: sync | |
| secrets: | |
| LINEAR_RELEASE_MANAGEMENT_ACCESS_KEY: ${{ secrets.LINEAR_RELEASE_MANAGEMENT_ACCESS_KEY }} |