diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml new file mode 100644 index 0000000..fe861aa --- /dev/null +++ b/.github/workflows/npm-publish-github-packages.yml @@ -0,0 +1,32 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages +name: Deploy Cody Auth Frontend + +on: + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + + - name: Install & Build + run: | + npm ci + npm run build + + - name: Docker Build & Push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: yourdockerhub/cody-auth-frontend:latest