From db4abc7e0d3a5819daaa6b33891401bb25411759 Mon Sep 17 00:00:00 2001 From: jjuuuunnii <129721531+jjuuuunnii@users.noreply.github.com> Date: Wed, 20 Dec 2023 08:50:01 +0900 Subject: [PATCH] Feat: Update npm-publish.yml --- .github/workflows/npm-publish.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 44c9514..c7fcc4e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -12,14 +12,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - # - name: Cache node modules - # uses: actions/cache@v3.3.2 - # 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: @@ -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: