Skip to content

Commit

Permalink
chore(release): publishConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kyechan99 committed Mar 11, 2024
1 parent 982a761 commit 59c94b2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
name: Node.js Package
name: Release Package

on:
release:
types: [created]

jobs:
build:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout
- name: Checkout code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
name: Install pnpm
- name: Install Node
uses: actions/setup-node@v4
with:
version: 8
run_install: false
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@kyechan99'

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: https://registry.npmjs.org
- name: Install pnpm
run: |
npm install -g pnpm
- name: Install dependencies
- name: Install Packages
run: pnpm install

- name: Publish 🚀
shell: bash
run: pnpm publish packages/components --access public --no-git-checks
- run: pnpm buildOnce

- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
"files": [
"/dist"
],
"publishConfig": {
"@kyechan99:registry": "https://npm.pkg.github.com"
},
"readme": "ERROR: No README data found!",
"homepage": "https://github.com/kyechan99/bmates-ui#readme",
"_id": "[email protected]"
Expand Down

0 comments on commit 59c94b2

Please sign in to comment.