Skip to content

Commit

Permalink
Merge pull request #35 from ensdomains/feat/use-pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB authored Aug 16, 2022
2 parents 17e7159 + 90cdf41 commit 6d58ad8
Show file tree
Hide file tree
Showing 1,320 changed files with 9,909 additions and 44,214 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ jobs:
with:
ref: ${{ github.event.release.target_commitish }}

- name: Set up Node ${{ matrix.node-version }}
- uses: pnpm/[email protected]
with:
version: 7.8.0

- name: Install Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- name: Install dependencies
run: yarn install
- run: pnpm install --frozen-lockfile

- name: Set up git
run: |
Expand All @@ -33,14 +35,16 @@ jobs:
- name: Bump version to ${{ github.event.release.tag_name }}
run: |
yarn workspace @ensdomains/ensjs version:create ${{ github.event.release.tag_name }}
pnpm -F @ensdomains/ensjs ver ${{ github.event.release.tag_name }}
git add .
git commit -m "${{ github.event.release.tag_name }}"
- name: Publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn workspace @ensdomains/ensjs npm publish
run: |
pnpm config set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
pnpm -F @ensdomains/ensjs publish
- name: Push changes
run: git push
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on: [push]

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3

- uses: pnpm/[email protected]
with:
version: 7.8.0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- run: pnpm install --frozen-lockfile

- name: Run tests
run: pnpm -F @ensdomains/ensjs tenv start
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
node_modules

.env

Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
strict-peer-dependencies=false
Loading

0 comments on commit 6d58ad8

Please sign in to comment.