Skip to content

Commit 7c98479

Browse files
committed
Combine deploy workshop with release workflows
1 parent bc9072b commit 7c98479

File tree

4 files changed

+53
-40
lines changed

4 files changed

+53
-40
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/release.when-pushed.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://gist.github.com/paullessing/d706c8af51faca68c6ba0f9f9bae4e4b#file-release-when-pushed-yml
22

3-
name: 📦☁️ Release to GitHub Releases
3+
name: 📦☁️ Release
44

55
on:
66
workflow_dispatch:
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
release:
12-
name: 📦☁️ Release to GitHub Releases
12+
name: 📦☁️ Release
1313
runs-on: ubuntu-18.04
1414
steps:
1515
- uses: actions/checkout@v2
@@ -20,6 +20,30 @@ jobs:
2020
- name: ⚡ Install dependencies
2121
run: yarn install --frozen-lockfile
2222

23+
- uses: actions/setup-node@v1
24+
with:
25+
node-version: '14.16.0'
26+
registry-url: 'https://registry.npmjs.org'
27+
scope: '@netresearch'
28+
29+
- name: ⚡ Install dependencies
30+
run: yarn install --frozen-lockfile
31+
32+
- name: ☁️ Publish to NPM
33+
run: yarn publish --access=public
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
37+
- uses: actions/setup-node@v1
38+
with:
39+
registry-url: 'https://npm.pkg.github.com'
40+
scope: '@netresearch'
41+
42+
- name: ☁️ Publish to GitHub Package Registry
43+
run: yarn publish --access=public
44+
env:
45+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
2347
- name: 📦 Package
2448
run: yarn pack --filename=package.tgz
2549

.github/workflows/release.when-tagged.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://gist.github.com/paullessing/d706c8af51faca68c6ba0f9f9bae4e4b#file-release-when-tagged-yml
22

3-
name: 📦☁️ Release to GitHub Releases
3+
name: 📦☁️ Release
44

55
on:
66
workflow_dispatch:
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13-
name: 📦☁️ Release to GitHub Releases
13+
name: 📦☁️ Release
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
@@ -21,6 +21,30 @@ jobs:
2121
- name: ⚡ Install dependencies
2222
run: yarn install --frozen-lockfile
2323

24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: '14.16.0'
27+
registry-url: 'https://registry.npmjs.org'
28+
scope: '@netresearch'
29+
30+
- name: ⚡ Install dependencies
31+
run: yarn install --frozen-lockfile
32+
33+
- name: ☁️ Publish to NPM
34+
run: yarn publish --access=public
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
38+
- uses: actions/setup-node@v1
39+
with:
40+
registry-url: 'https://npm.pkg.github.com'
41+
scope: '@netresearch'
42+
43+
- name: ☁️ Publish to GitHub Package Registry
44+
run: yarn publish --access=public
45+
env:
46+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
2448
- name: 📦 Package
2549
run: yarn pack --filename=package.tgz
2650

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "node-magento-eqp",
2+
"name": "@netresearch/node-magento-eqp",
33
"version": "1.0.0",
44
"description": "Simple API wrapper around the Magento Marketplace EQP API",
55
"main": "dist/index.js",

0 commit comments

Comments
 (0)