diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 0000000..4bf5dae --- /dev/null +++ b/.github/workflows/release-package.yml @@ -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}} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbf9422 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..1bca7ac --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@AthleticNet:registry=https://npm.pkg.github.com \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..da4180f --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "@athleticnet/web-styles", + "version": "1.0.0", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json index 08e463a..6ee6264 100644 --- a/package.json +++ b/package.json @@ -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": {