Skip to content

Commit

Permalink
[AUT-1965] Add github action for deploying dev packages (#57)
Browse files Browse the repository at this point in the history
Add github action for deploying dev packages
  • Loading branch information
aaronzhongg committed Apr 15, 2024
1 parent c6c46ae commit fdd30f7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release a dev version of the Authsignal browser package

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn
- run: yarn build

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- run: yarn
- run: yarn build
- run: yarn publish --access public --tag dev
env:
YARN_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit fdd30f7

Please sign in to comment.