Skip to content

TopluyoBOT-v1.2

TopluyoBOT-v1.2 #3

Workflow file for this run

name: Publish to GitHub Packages
on:
release:
types: [published]
jobs:
publish-gpr:
name: GitHub Packages publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set Scope Name
run: |
sed -i 's/"name": "topluyo-bot"/"name": "@topluyo\/topluyo-bot"/' package.json
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
scope: '@${{ github.repository_owner }}'
- name: Install dependencies
run: npm install
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}