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: