fix: release #26
This file contains 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/CD | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.15.1' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup turbo cache | |
uses: actions/cache@v4 | |
with: | |
path: '.turbo' | |
key: turbo-${{ github.ref_name }}-${{ github.sha }} | |
restore-keys: | | |
turbo-${{ github.ref_name }}- | |
turbo-master- | |
- name: Setup git | |
env: | |
GIT_USER_NAME: ${{ github.actor }} | |
GIT_USER_EMAIL: '[email protected]' | |
run: | | |
git config --global user.name "$GIT_USER_NAME" | |
git config --global user.email "$GIT_USER_EMAIL" | |
- name: Authenticate to ghcr.io | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.PIPELINE_TOKEN }} | |
- name: Devcontainer | |
uses: devcontainers/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.PIPELINE_TOKEN }} | |
with: | |
imageName: ghcr.io/raine-works/turbo-cache-devcontainer | |
cacheFrom: ghcr.io/raine-works/turbo-cache-devcontainer | |
configFile: ./.github/devcontainer.json | |
env: | | |
GITHUB_TOKEN | |
runCmd: | | |
bun install --frozen-lockfile --ignore-scripts | |
bun run release --cache-dir=.turbo | |
bun run docker:build | |