Skip to content

Commit

Permalink
Merge pull request #1 from stafftastic/feat/adjust-env
Browse files Browse the repository at this point in the history
feat: adjust env
  • Loading branch information
elhesuu authored Oct 1, 2024
2 parents cc1fb17 + c2e1726 commit 27560b1
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Publish package to registry"

on:
release:
types: [published]

jobs:
build-and-publish:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm version --no-git-tag-version ${GITHUB_REF_NAME#v}
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Pull Request checks"

on:
- pull_request

jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm install
- run: npm run build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ pnpm-debug.log*
.eslintcache
# Local Netlify folder
.netlify

.npmrc
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "v-calendar",
"name": "@stafftastic/v-calendar",
"type": "module",
"version": "3.1.2",
"description": "A calendar and date picker plugin for Vue.js.",
Expand Down

0 comments on commit 27560b1

Please sign in to comment.