Skip to content

Commit d3d3c7c

Browse files
committed
chore: Update npm dependencies and GitHub Actions workflow for publishing to npm and creating GitHub releases
1 parent f07ea4c commit d3d3c7c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777

7878
- name: Configure .npmrc for GitHub Packages
7979
run: |
80-
echo "//npm.pkg.github.com/:_authToken=\${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
80+
echo "//npm.pkg.github.com/:_authToken=\${{ secrets.PA_TOKEN }}" > ~/.npmrc
8181
echo "@${{ secrets.GITHUB_USERNAME }}:registry=https://npm.pkg.github.com" >> ~/.npmrc
8282
8383
- name: Install dependencies
@@ -86,7 +86,7 @@ jobs:
8686
- name: Publish to GitHub Packages
8787
run: npm publish
8888
env:
89-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
NODE_AUTH_TOKEN: ${{ secrets.PA_TOKEN }}
9090

9191
create_release:
9292
runs-on: ubuntu-latest
@@ -100,7 +100,7 @@ jobs:
100100
id: create_release
101101
uses: actions/create-release@v1
102102
env:
103-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
PA_TOKEN: ${{ secrets.PA_TOKEN }}
104104
with:
105105
tag_name: v${{ github.event.head_commit.timestamp }}
106106
release_name: Release v${{ github.event.head_commit.timestamp }}
@@ -110,7 +110,7 @@ jobs:
110110
- name: Upload Release Asset
111111
uses: actions/upload-release-asset@v1
112112
env:
113-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113+
PA_TOKEN: ${{ secrets.PA_TOKEN }}
114114
with:
115115
upload_url: ${{ steps.create_release.outputs.upload_url }}
116116
asset_path: ./path-to-your-asset.zip

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "modulatecss",
3-
"version": "1.0.30",
3+
"version": "1.0.31",
44
"description": "...",
55
"main": "dist/css/modulate.min.css",
66
"style": "dist/css/modulate.min.css",

0 commit comments

Comments
 (0)