feat: add provider plugin definition (#23) (#30) #10
Workflow file for this run
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: Bump npm version on tag | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| bump-version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: infracost/create-github-app-token@v1 | |
| id: app-token | |
| with: | |
| app-id: ${{ secrets.INFRACOST_CI_APP_ID }} | |
| private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }} | |
| owner: infracost | |
| repositories: proto | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| fetch-depth: 0 | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Extract version from tag | |
| id: version | |
| run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Bump package.json version | |
| run: npm version "${{ steps.version.outputs.version }}" --no-git-tag-version | |
| # use the token to commit and push the changes | |
| # the token from the app only has write permissions on the proto repo | |
| - name: Commit, push, and re-tag | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add package.json | |
| git commit -m "chore: bump npm version to ${{ steps.version.outputs.version }} [skip ci]" | |
| git push | |
| git tag -f "$GITHUB_REF_NAME" | |
| git push origin "$GITHUB_REF_NAME" --force |