Skip to content

Commit

Permalink
chore(publish): use gh actions for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
devcauldron committed Jun 2, 2021
1 parent 4684284 commit 75d232d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
# scope: '@kettlespace-eng'
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@kettlespace-eng/expo-keycloak",
"version": "1.0.30",
"version": "1.0.31",
"description": "Keycloak authentication for react-native apps using Expo.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --project .",
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "npm-auto-version",
"postpublish": "git push origin --tags"
"xxxprepublish": "npm-auto-version",
"xxxpostpublish": "git push origin --tags"
},
"repository": {
"type": "git",
Expand All @@ -23,7 +23,7 @@
"openid",
"react native"
],
"author": "Matěj Balga <matej.balga@icloud.com>",
"author": "devcauldron <jeff@kettlespace.com>",
"license": "MIT",
"devDependencies": {
"@react-native-async-storage/async-storage": "^1.13.2",
Expand Down

0 comments on commit 75d232d

Please sign in to comment.