-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Showing
6 changed files
with
48 additions
and
31 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ name: publish-to-npm | |
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -11,33 +12,41 @@ jobs: | |
ref: dev | ||
|
||
# Setup .npmrc file to publish to npm | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/setup-node@v1.4.2 | ||
with: | ||
node-version: 12 | ||
node-version: '10.15.1' | ||
registry-url: 'https://registry.npmjs.org' | ||
scope: '@jamesives' | ||
|
||
- name: Configure git | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "James Ives" | ||
- run: npm install | ||
- run: npm run-script build | ||
- name: Install Yarn | ||
run: npm install -g yarn | ||
|
||
- run: yarn install --frozen-lockfile | ||
- run: yarn build | ||
- run: npm version patch -m "Release %s 📣" | ||
- run: git push | ||
- run: npm ci | ||
|
||
# Publish to npm | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
# Setup .npmrc file to publish to GitHub Packages | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/setup-node@v1.4.2 | ||
with: | ||
node-version: 12 | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@JamesIves' | ||
scope: '@jamesives' | ||
|
||
- name: Authenticate with the GitHub Package Registry | ||
run: | ||
echo "//npm.pkg.github.com:_authToken=${{ secrets.GITHUB_TOKEN }}" > | ||
~/.npmrc | ||
|
||
# Publish to GitHub Packages | ||
- run: npm publish | ||
|
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
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
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"name": "github-pages-deploy-action", | ||
"name": "@jamesives/github-pages-deploy-action", | ||
"description": "GitHub action for building a project and deploying it to GitHub pages.", | ||
"author": "James Ives <[email protected]> (https://jamesiv.es)", | ||
"version": "3.4.9", | ||
"version": "3.5.1", | ||
"license": "MIT", | ||
"main": "lib/lib.js", | ||
"types": "lib/lib.d.ts", | ||
|
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