8000 Update publish.yml · FFY00/github-pages-deploy-action@fd63bad · GitHub
[go: up one dir, main page]

Skip to content

Commit fd63bad

Browse files
committed
Update publish.yml
1 parent 6219697 commit fd63bad

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,36 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- name: Configure git
11-
run: |
12-
git config user.email "iam@jamesiv.es"
13-
git config user.name "James Ives"
10+
with:
11+
ref: dev
12+
1413
# Setup .npmrc file to publish to npm
1514
- uses: actions/setup-node@v1
1615
with:
17-
node-version: '10.x'
16+
node-version: 12
1817
registry-url: 'https://registry.npmjs.org'
18+
19+
- name: Configure git
20+
run: |
21+
git config user.email "iam@jamesiv.es"
22+
git config user.name "James Ives"
23+
1924
- run: npm install
2025
- run: npm run-script build
26+
- run: npm version patch -m "Release %s"
2127
- run: npm ci
2228
# Publish to npm
2329
- run: npm publish --access public
2430
env:
2531
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
2633
# Setup .npmrc file to publish to GitHub Packages
2734
- uses: actions/setup-node@v1
2835
with:
36+
node-version: 12
2937
registry-url: 'https://npm.pkg.github.com'
3038
scope: '@JamesIves'
39+
3140
# Publish to GitHub Packages
3241
- run: npm publish
3342
env:

0 commit comments

Comments
 (0)
0