Skip to content

Commit

Permalink
fix: npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Fawcett authored and Steven Fawcett committed Dec 12, 2022
2 parents f86539e + dc28808 commit 4b13b6c
Show file tree
Hide file tree
Showing 12 changed files with 19,219 additions and 8,758 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
<<<<<<< HEAD
name: Publish

=======
name: Release
>>>>>>> dc288086ec2b6df28624016c9067ba30365635a7
on:
workflow_dispatch:
push:
branches: [ "main" ]
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: |
npm install
npm run build
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- run: npx semantic-release
- run: npm ci

- run: npm install

- run: npm run build

- name: Release
run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ package-lock.json
/.vs/
.DS_Store
dist/
/src/images/._.DS_Store
2 changes: 1 addition & 1 deletion Compass.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script src="dist/js/instruments.js"></script>

<script>
window.onload = instruments.Compass()
window.onload = instruments.DrawCompass()
</script>

<input type="text" id="HEADING" name="Heading" value="100">
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ Build
npm run build
```

Publish command:
```
npm publish --access=public
```


2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function images( cb ) {

function javascripts() {
return browserify({
entries: './src/index.mjs',
entries: './src/index.js',
debug: true,
standalone: 'instruments',
plugin: [ esmify ]
Expand Down
Loading

0 comments on commit 4b13b6c

Please sign in to comment.