Skip to content

Commit

Permalink
chore: removed workflows for auto publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
devbabs committed Mar 23, 2024
1 parent c81ee78 commit d2715aa
Showing 1 changed file with 41 additions and 13 deletions.
54 changes: 41 additions & 13 deletions .github/workflows/publish-to-gh-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,50 @@ on:
- main # Change this to your main branch name

jobs:
publish:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '14'

- name: Install dependencies
run: npm install
node-version: 16
- run: npm ci
- run: npm test

- name: Publish to GitHub Packages
run: npm publish --registry=https://npm.pkg.github.com/@devbabs --access public
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: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish --registry=https://npm.pkg.github.com/@devbabs --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

# jobs:
# publish:
# runs-on: ubuntu-latest

# steps:
# - name: Checkout code
# uses: actions/checkout@v2

# - name: Set up Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '14'

# - name: Install dependencies
# run: npm install

# - name: Publish to GitHub Packages
# run: npm publish --registry=https://npm.pkg.github.com/@devbabs --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit d2715aa

Please # to comment.