Skip to content

Commit

Permalink
add npm publish, index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mchangrh committed Jun 29, 2022
1 parent be1e747 commit c1f1757
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cf-pages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: Cloudflare Pages
on: [push]

jobs:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: npm-ci

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM_TOKEN}}
29 changes: 29 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!doctype html>
<style>
body {
background-color: #111;
color: #fff;
font-size: larger;
}
a:link {
color: #ffff;
}
a:visited {
color: #fff;
text-decoration: none;
}
</style>
<body>
<pre>
<h1 id="sb-js">sb.js</h1>
UserScript: <a href="sb.user.js">sb.user.js</a>
Bookmarklet: <a href="sb.bookmarklet.js">sb.bookmarklet.js</a>
Minified (Console): <a href="./sb.min.js">sb.min.js</a>
Non-Minified (Console): <a href="./sb.js">sb.js</a>
UserScript Loader: <a href="./sb-loader.user.js">sb-loader.user.js</a>
Loader Taget: <a href="./sb-nosettings.min.js">sb-nosettings.min.js</a>

<a href="https://github.com/mchangrh/sb.js">GitHub</a>
<a href="https://mchangrh.github.io/sb.js">GitHub Pages</a>
<a href="https://sbjs.pages.dev">Cloudflare Pages</a>
</pre></body>
13 changes: 0 additions & 13 deletions docs/index.md

This file was deleted.

0 comments on commit c1f1757

Please sign in to comment.