Skip to content

Commit 4ad6fd6

Browse files
github action fixes
1 parent 15e646c commit 4ad6fd6

File tree

4 files changed

+60
-27
lines changed

4 files changed

+60
-27
lines changed

.github/workflows/npm-publish.yml

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

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
tag:
8+
name: Add/update 'latest' tag
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
- name: Run latest-tag
14+
uses: EndBug/latest-tag@v1
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
18+
publish-npm:
19+
name: Publish on NPM
20+
runs-on: ubuntu-latest
21+
needs: tag
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up Node.js for NPM
25+
uses: actions/setup-node@v1
26+
with:
27+
registry-url: 'https://registry.npmjs.org'
28+
- run: npm install
29+
- run: npm publish
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
32+
33+
publish-gpr:
34+
name: Publish on GPR
35+
runs-on: ubuntu-latest
36+
needs: tag
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Set up Node.js for GPR
40+
uses: actions/setup-node@v1
41+
with:
42+
registry-url: 'https://npm.pkg.github.com/'
43+
scope: '@markbattistella'
44+
- run: npm install
45+
- run: npm publish
46+
env:
47+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
.github
44
.DS_Store
55
.markdownlintrc
6-
.vscode
6+
.vscode
7+
scripts

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@
22
"name": "@markbattistella/docsify-sidebarfooter",
33
"version": "5.0.0",
44
"description": "Add a footer notice for Docsify.js",
5-
"main": "dist/docsify-sidebar.min.js",
5+
"main": "./dist/docsify-sidebar.min.js",
66
"repository": {
77
"type": "git",
88
"url": "git+https://github.com/markbattistella/docsify-sidebarFooter.git"
99
},
10-
"author": "Mark Battistella",
11-
"license": "MIT",
12-
"bugs": {
13-
"url": "https://github.com/markbattistella/docsify-sidebarFooter/issues"
14-
},
15-
"homepage": "https://footer.docsify.markbattistella.com",
10+
"scripts": {},
11+
"unpkg": "./dist/docsify-sidebar.min.js",
12+
"jsdelivr": "./dist/docsify-sidebar.min.js",
1613
"keywords": [
1714
"footer",
1815
"copyright",
@@ -25,5 +22,11 @@
2522
"cookie policy",
2623
"docsify",
2724
"docsify plugin"
28-
]
25+
],
26+
"author": "Mark Battistella",
27+
"license": "MIT",
28+
"bugs": {
29+
"url": "https://github.com/markbattistella/docsify-sidebar-footer/issues"
30+
},
31+
"homepage": "https://footer.docsify.markbattistella.com"
2932
}

0 commit comments

Comments
 (0)