👷 Create NPM publish workflow and set version to 0.1.0

This commit is contained in:
RaviAnand Mohabir 2021-05-23 17:41:54 +02:00
parent 591bfbbbc6
commit dbe3394782
2 changed files with 25 additions and 1 deletions

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

@ -0,0 +1,24 @@
name: Deploy package to NPM and GitHub package repository
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- run: yarn install
- run: yarn dev
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: https://npm.pkg.github.com
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public

View File

@ -1,6 +1,6 @@
{ {
"name": "svelte-kit-auth", "name": "svelte-kit-auth",
"version": "1.0.0", "version": "0.1.0",
"description": "Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!", "description": "Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",