Skip to content

Commit

Permalink
chore: utilize pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
dalenguyen committed Aug 24, 2022
1 parent e433546 commit af3aa17
Show file tree
Hide file tree
Showing 5 changed files with 2,640 additions and 2,323 deletions.
49 changes: 40 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,47 @@ on:
types: [created]
jobs:
build:
name: Deploy to NPM
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: pnpm/action-setup@v2.2.2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
version: 7

- name: node_modules cache
uses: actions/cache@v3
id: node_modules-cache
with:
path: ./node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: pnpm cache
if: steps.node_modules-cache.outputs.cache-hit != 'true'
uses: actions/cache@v3
id: pnpm-store
with:
path: ~/.pnpm-store/v3
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Build
run: pnpm build

- name: Publish
run: pnpm publish


6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
---

## [1.2.1] - 2022-08-24

#### - :nail_care: [Polish]

- utilize pnpm instead of yarn

## [1.2.0] - 2022-06-27

#### - :rocket: [New Feature]
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firestore-export-import",
"version": "1.2.0",
"version": "1.2.1",
"description": "NPM package for backup and restore Firebase Firestore",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -34,28 +34,28 @@
},
"homepage": "https://github.com/dalenguyen/firestore-backup-restore#readme",
"devDependencies": {
"@types/chai": "^4.3.1",
"@types/chai": "^4.3.3",
"@types/expect": "^24.3.0",
"@types/mocha": "^9.1.1",
"@types/node": "^18.0.0",
"@types/node": "^18.7.13",
"chai": "^4.3.6",
"jsmin": "^1.0.1",
"minimist": "^1.2.6",
"mocha": "^10.0.0",
"request": "^2.88.2",
"request-promise": "^4.2.6",
"ts-node": "^10.8.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
},
"dependencies": {
"firebase-admin": "^11.0.0",
"google-gax": "^3.1.2",
"firebase-admin": "^11.0.1",
"google-gax": "^3.2.1",
"uuid": "^8.3.2"
},
"resolutions": {
"minimist": "1.2.6"
},
"engines": {
"node": ">=14.8.0"
"node": ">=16.0.0"
}
}
Loading

0 comments on commit af3aa17

Please sign in to comment.