Skip to content

Commit 7b7cd05

Browse files
author
Rajat Saxena
committed
Removed package publishing action
1 parent cf71586 commit 7b7cd05

File tree

2 files changed

+116
-116
lines changed

2 files changed

+116
-116
lines changed
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
name: Publish NPM Packages
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
# publish-packages:
10+
# runs-on: ubuntu-latest
11+
# steps:
12+
# - name: checkout
13+
# uses: actions/checkout@v1
14+
15+
# - name: Configure CI Git User
16+
# run: |
17+
# git config --global user.name 'Rajat Saxena'
18+
# git config --global user.email '[email protected]'
19+
# git remote set-url origin https://$GITHUB_ACTOR:[email protected]/codelitdev/courselit
20+
# env:
21+
# GITHUB_PAT: ${{ secrets.PAT }}
22+
23+
# - name: Checkout and pull branch
24+
# run: |
25+
# LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
26+
# git checkout $LATEST_TAG
27+
28+
# - name: Setup pnpm
29+
# uses: pnpm/action-setup@v2
30+
# with:
31+
# version: 8
32+
33+
# - name: Install Packages
34+
# run: pnpm install
35+
36+
# - name: Authenticate with Registry
37+
# run: |
38+
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
39+
# pnpm whoami
40+
# env:
41+
# NPM_TOKEN: ${{ secrets.NPM }}
42+
43+
# - name: Build packages
44+
# run: |
45+
# pnpm --filter @courselit/icons build
46+
# pnpm --filter @courselit/common-models build
47+
# pnpm --filter @courselit/utils build
48+
# pnpm --filter @courselit/text-editor build
49+
# pnpm --filter @courselit/state-management build
50+
# pnpm --filter @courselit/components-library build
51+
# pnpm --filter @courselit/common-widgets build
52+
53+
# - name: Publish package
54+
# run: |
55+
# pnpm publish
56+
# env:
57+
# GH_TOKEN: ${{ secrets.PAT }}
58+
# GITHUB_TOKEN: ${{ secrets.PAT }}
59+
# NPM_TOKEN: ${{ secrets.NPM }}
60+
61+
publish-docker-images:
62+
# needs: publish-packages
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: checkout
66+
uses: actions/checkout@v1
67+
68+
- name: Checkout and pull branch
69+
run: |
70+
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
71+
git checkout $LATEST_TAG
72+
73+
- name: Setup buildx
74+
uses: docker/setup-buildx-action@v1
75+
76+
- name: Login to DockerHub
77+
uses: docker/login-action@v1
78+
with:
79+
username: ${{ secrets.DOCKERNAME }}
80+
password: ${{ secrets.DOCKERTOKEN }}
81+
82+
- name: Docker meta for the app
83+
id: metaapp
84+
uses: docker/metadata-action@v3
85+
with:
86+
images: codelit/courselit-app
87+
88+
- name: Docker meta for the queue
89+
id: metaqueue
90+
uses: docker/metadata-action@v3
91+
with:
92+
images: codelit/courselit-queue
93+
94+
- name: Build and push app
95+
id: docker_build_app
96+
uses: docker/build-push-action@v2
97+
with:
98+
context: .
99+
file: ./services/app/Dockerfile
100+
push: true
101+
tags: ${{ steps.metaapp.outputs.tags }}
102+
103+
- name: Image digest
104+
run: echo ${{ steps.docker_build_app.outputs.digest }}
105+
106+
- name: Build and push queue
107+
id: docker_build_queue
108+
uses: docker/build-push-action@v2
109+
with:
110+
context: .
111+
file: ./services/queue/Dockerfile
112+
push: true
113+
tags: ${{ steps.metaqueue.outputs.tags }}
114+
115+
- name: Image digest
116+
run: echo ${{ steps.docker_build_queue.outputs.digest }}

.github/workflows/publish-packages.yaml

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)