Skip to content

Commit 6850484

Browse files
authored
Merge pull request #49 from htbkoo/add-github-packages-publish-on-github-workflows
feat(GitHubActions): Add job to publish to GitHub Packages Registry
2 parents d43aaf7 + 07257db commit 6850484

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,20 @@ jobs:
3131
- run: npm publish
3232
env:
3333
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34+
35+
publish-gpr:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
permissions:
39+
contents: read
40+
packages: write
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: actions/setup-node@v3
44+
with:
45+
node-version: 16
46+
registry-url: https://npm.pkg.github.com/
47+
- run: npm ci
48+
- run: npm publish
49+
env:
50+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-to-and-from-react",
3-
"version": "0.6.1",
3+
"version": "0.6.2",
44
"description": "A small util to convert between CSS and React styles object",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)