Skip to content

Commit

Permalink
fix: GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunmangukiya committed May 20, 2021
1 parent 1c07c24 commit 4249264
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Binary file added .github/.DS_Store
Binary file not shown.
15 changes: 10 additions & 5 deletions .github/workflows/npm-publish-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,31 @@ 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
- name: Publish to NPM
uses: primer/publish@v2.0.0
env:
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 4249264

Please sign in to comment.