chore: add setup-node@v4 for npm 10+ OIDC support #8
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: Docker | |
| on: | |
| push: | |
| tags: ['v*'] | |
| jobs: | |
| push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build image | |
| run: docker build -t ghcr.io/refract-org/refract/cli:${{ github.ref_name }} . | |
| - name: Tag latest | |
| run: docker tag ghcr.io/refract-org/refract/cli:${{ github.ref_name }} ghcr.io/refract-org/refract/cli:latest | |
| - name: Login to GHCR | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
| - name: Push | |
| run: docker push --all-tags ghcr.io/refract-org/refract/cli |