UNPKG

quickpostgres

Version:

An easy, beginner-friendly PostgreSQL database wrapper similar to quick.db.

43 lines (35 loc) 1.18 kB
name: NPM Publish (Release) on: release: types: [published] jobs: npm-publish: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 with: ref: ${{ github.event.release.target_commitish }} - name: Install Node 16 uses: actions/setup-node@v2 with: node-version: 16 cache: npm registry-url: https://registry.npmjs.org/ - name: Install dependencies run: npm ci - run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - run: git config --global user.name "github-actions" - name: Run final tests # npm run test is excluded here intentionally run: npm run lint && npm run prettier - name: Version package run: 'npm version ${{ github.event.release.tag_name }} -m "chore(Release): bump version %s"' - name: Publish to NPM run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Push version changes to GitHub run: git push env: github-token: ${{ secrets.GITHUB_TOKEN }}