Skip to content

Commit

Permalink
Feat: Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jjuuuunnii authored Dec 19, 2023
1 parent 0f46fa6 commit db4abc7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

# - name: Cache node modules
# uses: actions/[email protected]
# with:
# path: node_modules
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-node-

- name: Use Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -31,14 +23,16 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Add Babel plugin
run: yarn add @babel/plugin-proposal-private-property-in-object --dev

- name: Build
run: yarn build


- name: Docker build & push to hub
run: |
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
docker build -f Dockerfile.dev -t ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }}:latest .
docker build -f Dockerfile -t ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }}:latest .
docker push ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_PROD_REPONAME }}:latest
cd:
Expand Down

0 comments on commit db4abc7

Please sign in to comment.