Merge pull request #93 from aemsites/DEVSITE-2364-json-static #111
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| id-token: write | |
| contents: write # semantic-release-dry verifies the write permissions | |
| issues: read # needed by semantic-release | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js LTS (Krypton) | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/krypton" | |
| - run: npm ci | |
| - run: npm test | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js LTS (Krypton) | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/krypton" | |
| - run: npm ci | |
| - name: Semantic Release | |
| run: npx semantic-release | |
| env: | |
| AIO_RUNTIME_AUTH: ${{ secrets.AIO_RUNTIME_AUTH }} | |
| AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE }} | |