Skip to content

Commit

Permalink
chore: construct workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
surelle-ha committed Nov 1, 2024
1 parent c4c7161 commit 61860a8
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
name: Registry

on:
push:
branches:
- main
- ci/*
- feature/*
- test/*
push:
branches:
- main
- ci/*
- feature/*
- test/*

jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
publish-gpr:
permissions:
contents: read
packages: write
attestations: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://npm.pkg.github.com/'
scope: '@bismuthjs'
- uses: actions/setup-node@v3
with:
node-version: "20"
registry-url: "https://npm.pkg.github.com/"
scope: "@bismuthjs"

- name: Write .npmrc
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
- name: Write .npmrc
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc

- run: npm install --legacy-peer-deps
- run: tsc --build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm install --legacy-peer-deps
- run: tsc --build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 61860a8

Please sign in to comment.