-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c07c24
commit 4249264
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |