Skip to content

1.0.44

1.0.44 #49

Workflow file for this run

name: Node.js CI
on:
push:
tags:
- '*'
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
#
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install --omit=dev
- run: npm install -D typescript
- run: tsc
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: neurospeech/tracer-server:latest
# - name: Delete Old Images
# uses: camargo/delete-untagged-action@v1
# with:
# github-token: ${{ secrets.GHCR_TOKEN }}