diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 35b54854..1dfa076f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -19,28 +19,3 @@ jobs: run: npm install - name: Run linter run: npm run lint - package: - name: Package distribution files - runs-on: ubuntu-latest - needs: - - lint-code - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: '**/node_modules' - key: ec2-github-runner-${{ hashFiles('**/package-lock.json') }} - - name: Install packages - run: npm install - - name: Package - run: npm run package - - name: Commit - run: | - git config --global user.name "GitHub Actions" - git add dist/ - git commit -m "Update dist" || echo "No changes to commit" - git push origin ${{ github.head_ref }} diff --git a/README.md b/README.md index ed1b1eb4..20104725 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,7 @@ jobs: aws-region: ${{ secrets.AWS_REGION }} - name: Start EC2 runner id: start-ec2-runner - uses: machulav/ec2-github-runner@v2.2.0 + uses: machulav/ec2-github-runner@v2 with: mode: start github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} @@ -271,7 +271,7 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_REGION }} - name: Stop EC2 runner - uses: machulav/ec2-github-runner@v2.2.0 + uses: machulav/ec2-github-runner@v2 with: mode: stop github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}