@yoann-86/react_test_lab 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,3 +112,29 @@ jobs:
112
112
  - name: 🚀 Deploy to GitHub Pages
113
113
  id: deployment
114
114
  uses: actions/deploy-pages@v4
115
+
116
+ publish:
117
+ name: 📦 Publish to npm
118
+ runs-on: ubuntu-latest
119
+ needs: deploy
120
+ steps:
121
+ - name: 👯‍♂️ Clone repository
122
+ uses: actions/checkout@v4
123
+ - name: Install Node.js 24.x and pnpm
124
+ uses: ./.github/actions/install-node
125
+ - name: Authenticate with npm
126
+ run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
127
+ - name: 📌 Version Bump
128
+ run: |
129
+ git config --global user.name "GitHub Actions"
130
+ git config --global user.email "yoann.ar.pro@gmail.com"
131
+ pnpm version patch
132
+ - name: 📦 Publish to npm
133
+ run: |
134
+ pnpm build:npm
135
+ pnpm publish
136
+ git add .
137
+ git commit -m "updated version"
138
+ git push
139
+ env:
140
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoann-86/react_test_lab",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "homepage": "https://yoannauroyynov.github.io/react-test-lab/",
6
6
  "dependencies": {