v1.4.2 #18
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: Semantic Release Docker | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| release: | |
| types: [created] | |
| workflow_dispatch: | |
| jobs: | |
| semantic_release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Configure Git Credentials | |
| run: | | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "semantic-release-bot" | |
| - name: Docker Login | |
| run: docker login --username ${{ secrets.GHCR_USERNAME }} --password ${{ secrets.GHCR_TOKEN }} ghcr.io | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| with: | |
| token: ${{ secrets.GHCR_TOKEN }} | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: | | |
| npm install --legacy-peer-deps | |
| - name: Prepare Environment files | |
| run: | | |
| cp .env.staging.example .env.production | |
| - name: Semantic Release | |
| run: npx semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }} |