Skip to content

Commit

Permalink
Release to GH packages as well
Browse files Browse the repository at this point in the history
  • Loading branch information
msutkowski committed Dec 15, 2021
1 parent b2d5254 commit 63f59f4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/gh-packages-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Package to Github Packages
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Install (Node)
uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: '14'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@stordco'

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 63f59f4

Please sign in to comment.