Skip to content

fix: set scope option #3

fix: set scope option

fix: set scope option #3

Workflow file for this run

name: Publish libs
#on:
# release:
# types: [published]
on:
push:
branches:
- '**'
jobs:
publish:
name: Publish packages
runs-on: ubuntu-latest
strategy:
matrix:
package:
[
{ name: 'lib-apiclient' },
{ name: 'lib-auth' },
{ name: 'lib-aws' },
{ name: 'lib-components' },
{ name: 'lib-config' },
{ name: 'lib-db' },
{ name: 'lib-email' },
{ name: 'lib-function-helpers' },
{ name: 'lib-gameserver' },
{ name: 'lib-http' },
{ name: 'lib-modules' },
{ name: 'lib-queues' },
{ name: 'lib-util' },
]
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.TAKARO_CI_APP_ID }}
private_key: ${{ secrets.TAKARO_CI_APP_PRIV_KEY }}
- name: Checkout code
uses: actions/checkout@v2
with:
token: ${{ steps.generate_token.outputs.token }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.18
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
scope: '@gettakaro'
- run: ./scripts/dev-init.sh
- run: npm -w packages/${{ matrix.package.name }} publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ steps.generate_token.outputs.token }}