Skip to content

Commit

Permalink
add code for automatic package creation on release
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-8 committed Apr 22, 2021
1 parent 48dfc1c commit 369a074
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release Package

on:
release:
types: [created]

jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Logs
logs
*.log
npm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/

# Optional npm cache directory
.npm
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@AthleticNet:registry=https://npm.pkg.github.com
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "web-styles",
"name": "@athleticnet/web-styles",
"version": "1.0.0",
"description": "Test of using Athletic7.3.scss in a package for usage on AthleticNet and anet-angular repos",
"scripts": {
Expand Down

0 comments on commit 369a074

Please sign in to comment.