diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..46e997e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +name: Publish Package to npm +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + - run: yarn install --frozen-lockfile + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..46482b0 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,24 @@ +name: Node.js CI +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x, 18.x] + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install --frozen-lockfile + - run: yarn build diff --git a/.npmignore b/.npmignore index f90332a..82d16bf 100644 --- a/.npmignore +++ b/.npmignore @@ -12,4 +12,5 @@ config.gypi CVS npm-debug.log -/examples \ No newline at end of file +/examples +.github \ No newline at end of file diff --git a/README.md b/README.md index 9b637e5..3173346 100644 --- a/README.md +++ b/README.md @@ -349,8 +349,8 @@ export default async function Page() { 👤 **Fedeya ** -- Website: https://fedeya.tk -- Twitter: [@fede_minaya](https://twitter.com/fede_minaya) +- Website: [fedeminaya.com](https://fedeminaya.com) +- Twitter: [@fedeminaya](https://twitter.com/fedeminaya) - Github: [@Fedeya](https://github.com/Fedeya) - LinkedIn: [@federico-minaya](https://linkedin.com/in/federico-minaya) diff --git a/package.json b/package.json index 1adc479..35933b7 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,9 @@ "devDependencies": { "@types/lru-cache": "^5.1.0", "@types/node": "^14.14.41", - "typescript": "^4.2.4" + "typescript": "^4.2.4", + "@sanity/client": "^5.2.2", + "next-auth": "^4.19.2" }, "dependencies": { "@sanity/uuid": "^3.0.1",