Skip to content

Publish @guildxyz/sdk #7

Publish @guildxyz/sdk

Publish @guildxyz/sdk #7

Workflow file for this run

name: Publish @guildxyz/sdk
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: self-hosted
container: node:lts-alpine3.18
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- name: "Install dependencies"
run: npm ci
- name: "Bump package version"
run: |
npm version $( echo "$GITHUB_REF_NAME" | sed 's/v//g' ) --git-tag-version=false
- name: "Publish package to NPM"
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}