Skip to content

Commit

Permalink
feat: changes to npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
rhandrade committed Dec 12, 2024
1 parent 06f3332 commit ba31b37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
33 changes: 9 additions & 24 deletions .github/workflows/release.action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,30 @@ name: 'Publish'
on:
release:
types: [published]
push:
branches:
- 'feature/package-release'

env:
NODE_VERSION: 20.x

jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
scope: '@tray-tecnologia'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/upload-artifact@v4
with:
name: ds-build
path: dist/

publish:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: ds-build
path: dist/
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://npm.pkg.github.com/
scope: '@uxshop'
cache: 'npm'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@uxshop/design-system",
"name": "@tray-tecnologia/design-system",
"description": "Conjunto de diretrizes, componentes e padrões visuais e de código.",
"version": "4.0.0-rc",
"type": "module",
Expand Down

0 comments on commit ba31b37

Please sign in to comment.