Skip to content

Commit

Permalink
github action fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markbattistella committed May 15, 2023
1 parent 15e646c commit 4ad6fd6
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 27 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/npm-publish.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release
on:
release:
types: [published]

jobs:
tag:
name: Add/update 'latest' tag
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run latest-tag
uses: EndBug/latest-tag@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-npm:
name: Publish on NPM
runs-on: ubuntu-latest
needs: tag
steps:
- uses: actions/checkout@v2
- name: Set up Node.js for NPM
uses: actions/setup-node@v1
with:
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

publish-gpr:
name: Publish on GPR
runs-on: ubuntu-latest
needs: tag
steps:
- uses: actions/checkout@v2
- name: Set up Node.js for GPR
uses: actions/setup-node@v1
with:
registry-url: 'https://npm.pkg.github.com/'
scope: '@markbattistella'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
.github
.DS_Store
.markdownlintrc
.vscode
.vscode
scripts
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
"name": "@markbattistella/docsify-sidebarfooter",
"version": "5.0.0",
"description": "Add a footer notice for Docsify.js",
"main": "dist/docsify-sidebar.min.js",
"main": "./dist/docsify-sidebar.min.js",
"repository": {
"type": "git",
"url": "git+https://github.com/markbattistella/docsify-sidebarFooter.git"
},
"author": "Mark Battistella",
"license": "MIT",
"bugs": {
"url": "https://github.com/markbattistella/docsify-sidebarFooter/issues"
},
"homepage": "https://footer.docsify.markbattistella.com",
"scripts": {},
"unpkg": "./dist/docsify-sidebar.min.js",
"jsdelivr": "./dist/docsify-sidebar.min.js",
"keywords": [
"footer",
"copyright",
Expand All @@ -25,5 +22,11 @@
"cookie policy",
"docsify",
"docsify plugin"
]
],
"author": "Mark Battistella",
"license": "MIT",
"bugs": {
"url": "https://github.com/markbattistella/docsify-sidebar-footer/issues"
},
"homepage": "https://footer.docsify.markbattistella.com"
}

0 comments on commit 4ad6fd6

Please sign in to comment.