Skip to content

Commit

Permalink
Add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ayu023ban committed May 9, 2021
1 parent 16a2095 commit 463220c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: covid-vaccine-tracker
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: '10.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
# Publish to npm
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v1
with:
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@octocat'
# Publish to GitHub Packages
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

v1.0.2
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "covid-vaccine-tracker",
"version": "1.0.1",
"version": "1.0.2",
"description": "A Tracker to Check the availability of vaccine through pincode and buzzer in case of availability",
"homepage": "https://github.com/ayu023ban/covid-vaccine-tracker#readme",
"main": "app.js",
Expand All @@ -16,6 +16,10 @@
"author": "ayush bansal",
"email": "[email protected]",
"url": "https://ayu023ban.github.io/",
"repository": {
"type": "git",
"url": "https://github.com/ayu023ban/covid-vaccine-tracker"
},
"license": "ISC",
"keywords": [
"covid",
Expand Down

0 comments on commit 463220c

Please sign in to comment.