Skip to content

Commit

Permalink
CAPI-189(feat): add github release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adityasingh-anyline committed Apr 11, 2024
1 parent 8b41f6d commit fbca978
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Anyline User Guidance

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/iron'
- run: yarn install --frozen-lockfile
- run: yarn jest

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/iron'
registry-url: https://npm.pkg.github.com/
- run: yarn install --frozen-lockfile
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@anyline:registry=https://npm.pkg.github.com
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "module",
"license": "MIT",
"publishConfig": {
"registry":"https://npm.pkg.github.com/"
"@anyline:registry":"https://npm.pkg.github.com/"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit fbca978

Please sign in to comment.