feat: add external credential resolvers for config values (#143) #30
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: Release | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| release_created: ${{ steps.release.outputs.release_created }} | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Fetch ephemeral Github token | |
| id: fetch-token | |
| uses: elastic/ci-gh-actions/fetch-github-token@8a7604dfdd4e7fe21f969bfe9ff96e17635ea577 # v1.0.0 | |
| with: | |
| vault-instance: "ci-prod" | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| config-file: .github/release-please-config.json | |
| manifest-file: .github/.release-please-manifest.json | |
| token: ${{ steps.fetch-token.outputs.token }} | |
| publish: | |
| needs: release-please | |
| if: ${{ needs.release-please.outputs.release_created == 'true' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| persist-credentials: false | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org | |
| - name: Install | |
| run: npm install | |
| - name: Run tests | |
| run: npm test | |
| - name: Publish | |
| run: npm publish |