diff --git a/.github/workflows/release.action.yml b/.github/workflows/release.action.yml index 21de180a..b9176f93 100644 --- a/.github/workflows/release.action.yml +++ b/.github/workflows/release.action.yml @@ -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}} diff --git a/package.json b/package.json index 8ac2c66a..043ae200 100644 --- a/package.json +++ b/package.json @@ -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",