Skip to content

Commit

Permalink
Merge pull request #40 from grafana/jackw/update-yarn-berry
Browse files Browse the repository at this point in the history
Chore: Update yarn, use node 20 and latest actions
  • Loading branch information
jackw authored Sep 6, 2024
2 parents e092c76 + 4057fc5 commit 3dbafad
Show file tree
Hide file tree
Showing 6 changed files with 3,741 additions and 2,148 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: master
# limit releases to version changes - https://github.com/EndBug/version-check
- name: Check version changes
uses: EndBug/version-check@v1
uses: EndBug/version-check@v2
id: version_check
with:
# diff the commits rather than commit message for version changes
Expand All @@ -27,14 +27,14 @@ jobs:

- name: Setup .npmrc file for NPM registry
if: steps.version_check.outputs.changed == 'true'
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
if: steps.version_check.outputs.changed == 'true'
run: yarn
run: yarn install --immutable

- name: Publish package to NPM
if: steps.version_check.outputs.changed == 'true'
Expand All @@ -44,9 +44,9 @@ jobs:

- name: Setup .npmrc file for GitHub Packages
if: steps.version_check.outputs.changed == 'true'
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20"
registry-url: "https://npm.pkg.github.com"
scope: "@grafana"

Expand Down
Binary file added .yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit 3dbafad

Please sign in to comment.