Skip to content

Commit

Permalink
update yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
tiavina-mika committed Apr 29, 2024
1 parent bc3e13e commit 51e2f7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
name: Publish Package to npmjs
run-name: ${{ github.actor }} publish to npm 🚀

on:
push:
tags:
- "v*.*.*"
jobs:
# Then release to npm
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Needed for https://docs.npmjs.com/generating-provenance-statements
strategy:
matrix:
node-version: [18]

steps:
- name: Checkout repo
uses: actions/checkout@v4
# Set up .npmrc file to publish to npm. This also allows NODE_AUTH_TOKEN
# to work below.
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"

node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
# for Yarn v1, use `yarn publish` instead
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

4 changes: 2 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ nodeLinker: node-modules

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

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

0 comments on commit 51e2f7e

Please sign in to comment.