Skip to content

fix(cicd): update tokens used #112

fix(cicd): update tokens used

fix(cicd): update tokens used #112

Workflow file for this run

# Unique name for this workflow
name: Validate PR and Run Tests
# Definition when the workflow should run
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
# Jobs to be executed
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: 'Install Dependencies'
run: npm i
- run: npm run build
- run: npm run test -- --colors
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
build-and-publish-docker:
needs: validate
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/flxbl-io/sfp-lite-rc:review