v1.0.0 #9
Workflow file for this run
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: 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 "plurality.web3@gmail.com" | |
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: 18.17 | |
- name: Install dependencies | |
run: npm install | |
- name: Semantic Release | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }} |