Skip to main content
Module

x/kv_storage/.github/workflows/npm-publish.yml

An implementation of the StorageArea interface for Deno.
Go to Latest
File
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Node.js Package
on: push: tags: - v*
jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12 - uses: maximousblk/setup-deno@v1 with: version: '1.13.2' - name: Setup PostgreSQL on Ubuntu run: | sudo systemctl start postgresql.service pg_isready sudo -u postgres psql --command="CREATE USER deno PASSWORD 'node'" sudo -u postgres createdb --owner=deno test - run: npm ci - run: npm test
publish-npm: needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12 registry-url: https://registry.npmjs.org/ - uses: maximousblk/setup-deno@v1 with: version: '1.13.2' - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# publish-gpr: # needs: build # runs-on: ubuntu-latest # steps: # - uses: actions/checkout@v2 # - uses: actions/setup-node@v1 # with: # node-version: 12 # registry-url: https://npm.pkg.github.com/ # - run: npm ci # - run: npm publish # env: # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}