Skip to content

Commit

Permalink
Added alpha publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishikant181 committed Sep 4, 2024
1 parent 1dc235e commit e8392c7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Alpha
run-name: Publishing the alpha package to NPM

on:
release:
types: [prereleased]

jobs:
# Packages and publishes the package to NPM
publish-npm:
runs-on: ubuntu-latest
steps:
# Setting up Node
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: https://registry.npmjs.org/

# Enabling CorePack
- run: corepack enable

# Installing dependencies
- run: yarn

# Publishing to NPM
- run: npm publish --tag alpha
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit e8392c7

Please sign in to comment.