1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
c247675832 Updated license 2021-02-05 13:52:41 +01:00
0d3c7d621a Bump version to test github action 2021-02-04 17:49:09 +01:00
62479197f5 Added workflow to publish package 2021-02-04 17:48:13 +01:00
2 changed files with 32 additions and 2 deletions

30
.github/workflows/npm-publish.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Publish NPM Package
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

View File

@@ -1,6 +1,6 @@
{
"name": "@tsndr/cloudflare-worker-jwt",
"version": "1.0.2",
"version": "1.0.4",
"description": "A lightweight JWT implementation with ZERO dependencies for Cloudflare Worker",
"main": "index.js",
"scripts": {
@@ -18,7 +18,7 @@
"cloudflare-worker"
],
"author": "Tobias Schneider",
"license": "ISC",
"license": "MIT",
"bugs": {
"url": "https://github.com/tsndr/cloudflare-worker-jwt/issues"
},