Skip to content

17.0.0 (2023-11-19) #15

17.0.0 (2023-11-19)

17.0.0 (2023-11-19) #15

Workflow file for this run

name: Publish
on:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
# Setup .npmrc file to publish to npm
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: npm install and build
run: |
npm install
npm run build-lib
cd dist/angular-gridster2
# Publish to npm
- name: npm publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
# Publish to GitHub Packages
- name: GitHub publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}