Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #77 from felvin-search/sahil/automate-package-publish
Browse files Browse the repository at this point in the history
Added action to publish package;
  • Loading branch information
sahil-shubham authored Sep 6, 2021
2 parents fa807cc + 173862c commit edc17af
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish package on new release

on:
release:
types: [published]

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- run: yarn install
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@felvin-search/apps",
"license": "MIT",
"version": "0.2.0",
"version": "0.2.1",
"private": false,
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -62,4 +62,4 @@
"files": [
"dist"
]
}
}

0 comments on commit edc17af

Please sign in to comment.