diff --git a/.github/.DS_Store b/.github/.DS_Store new file mode 100644 index 0000000..293559f Binary files /dev/null and b/.github/.DS_Store differ diff --git a/.github/workflows/npm-publish-rc.yml b/.github/workflows/npm-publish-rc.yml index 9491a9e..b94eb50 100644 --- a/.github/workflows/npm-publish-rc.yml +++ b/.github/workflows/npm-publish-rc.yml @@ -3,21 +3,26 @@ name: Publish to NPM RC on: push: # Sequence of patterns matched against refs/heads - branches: - - 'release-*' + branches: + - "release-*" jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - if: github.event_name == 'push' + uses: actions/checkout@v2 + - if: github.event_name == 'pull_request' + uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} - uses: actions/setup-node@v1 with: node-version: 10.16.3 - name: Download & Build Icons run: npm ci --progress=false && npm i @iconscout/unicons@latest && npm run generate - name: Create Pull Request - uses: peter-evans/create-pull-request@v1 + uses: peter-evans/create-pull-request@v3 with: token: ${{ secrets.GH_AUTH_TOKEN }} title: Updated Icons @@ -25,4 +30,4 @@ jobs: uses: primer/publish@v2.0.0 env: GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }} - NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} \ No newline at end of file + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}