Skip to content

Commit

Permalink
feat: setting up publish
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelafuentesales committed Feb 22, 2024
1 parent 937a7a1 commit 80815fa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Spanner

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
name: Deployment
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: '14'
registry-url: 'https://npm.pkg.github.com'
scope: '@streamyard'
- name: Install Dependencies
run: npm ci
- name: Build Package
run: npm run prepare
- name: Publish
if: ${{ github.ref == 'refs/heads/main' }}
run: npm publish --access restricted ./build/src
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@google-cloud/spanner",
"description": "Cloud Spanner Client Library for Node.js",
"version": "7.3.0",
"version": "7.3.0-1",
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
Expand Down

0 comments on commit 80815fa

Please sign in to comment.