Skip to content

(fix) ignore updated files not belonging to project (#2006) #33

(fix) ignore updated files not belonging to project (#2006)

(fix) ignore updated files not belonging to project (#2006) #33

name: Tagged Production Deploys for typescript-svelte-plugin
on:
push:
tags:
- "typescript-plugin-*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
cache: yarn
# Ensure everything is compiling
- run: "yarn install"
- run: "yarn build"
# Lets us use one-liner JSON manipulations the package.json files
- run: "npm install -g json"
# Setup the environment
- run: 'json -I -f packages/typescript-plugin/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()"'
# Ship it
- run: |
cd packages/typescript-plugin
npm install
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}