You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# fail and not publish if any of the unit tests are failing
39
31
- name: Test
40
32
run: pnpm test
41
-
- name: Create release and Publish to NPM
42
-
run: pnpm publish-package
43
-
# continue on error to publish scoped package name <- by default repo is setup for a non-scoped + scoped package name
44
-
continue-on-error: true
45
-
env:
46
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
47
-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
48
-
OWNER: ${{ github.event.repository.owner.login }}
49
-
REPO: ${{ github.event.repository.name }}
50
-
51
-
- name: Publish Scoped package to NPM
52
-
# continue on error - expecing npm to trow error if scoping is done twice
53
-
continue-on-error: true
54
-
id: publish_scoped
55
-
run: cd dist && node ../scope.js && npm publish --provenance --access public
56
-
env:
57
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
58
-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
59
-
OWNER: ${{ github.event.repository.owner.login }}
60
-
REPO: ${{ github.event.repository.name }}
61
-
62
-
- name: Mark scoped package as deprecated
33
+
- name: Setup Git
63
34
run: |
64
-
npm deprecate @mayank1513/esbuild-plugin-react18 "Please use https://www.npmjs.com/package/esbuild-plugin-react18 instead. We initially created scoped packages to have similarities with the GitHub Public Repository (which requires packages to be scoped). We are no longer using GPR and thus deprecating all scoped packages for which corresponding un-scoped packages exist."
0 commit comments