Skip to content

Commit 51e2f7e

Browse files
committed
update yarn
1 parent bc3e13e commit 51e2f7e

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
name: Publish Package to npmjs
2+
run-name: ${{ github.actor }} publish to npm 🚀
3+
24
on:
3-
push:
4-
tags:
5-
- "v*.*.*"
6-
jobs:
7-
# Then release to npm
85
release:
6+
types: [published]
7+
jobs:
8+
build:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
1212
id-token: write # Needed for https://docs.npmjs.com/generating-provenance-statements
13-
strategy:
14-
matrix:
15-
node-version: [18]
16-
1713
steps:
18-
- name: Checkout repo
19-
uses: actions/checkout@v4
20-
# Set up .npmrc file to publish to npm. This also allows NODE_AUTH_TOKEN
21-
# to work below.
14+
- uses: actions/checkout@v4
15+
# Setup .npmrc file to publish to npm
2216
- uses: actions/setup-node@v4
2317
with:
24-
node-version: "18.x"
25-
registry-url: "https://registry.npmjs.org"
26-
18+
node-version: '18.x'
19+
registry-url: 'https://registry.npmjs.org'
2720
- run: yarn
2821
# for Yarn v1, use `yarn publish` instead
2922
- run: yarn npm publish
3023
env:
3124
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25+

.yarnrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ nodeLinker: node-modules
22

33
yarnPath: .yarn/releases/yarn-3.6.4.cjs
44

5-
npmAuthToken: "${NPM_TOKEN}"
5+
npmAuthToken: ${NPM_TOKEN}
66
npmAlwaysAuth: true
7-
npmRegistryServer: https://npm.pkg.github.com # URL for private registry
7+
# npmRegistryServer: https://npm.pkg.github.com # URL for private registry

0 commit comments

Comments
 (0)