@robotical/martyblocks 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: Publish Package to npmjs
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [created]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v2
|
|
10
|
+
# Setup .npmrc file to publish to npm
|
|
11
|
+
- uses: actions/setup-node@v2
|
|
12
|
+
with:
|
|
13
|
+
node-version: '16.x'
|
|
14
|
+
registry-url: 'https://registry.npmjs.org'
|
|
15
|
+
- run: npm publish
|
|
16
|
+
env:
|
|
17
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: 'Bump Version'
|
|
2
|
+
|
|
3
|
+
on: workflow_dispatch
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
bump-version:
|
|
7
|
+
name: 'Bump Version'
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
steps:
|
|
11
|
+
- name: 'Checkout source code'
|
|
12
|
+
uses: 'actions/checkout@v2'
|
|
13
|
+
with:
|
|
14
|
+
ref: ${{ github.ref }}
|
|
15
|
+
- name: 'cat package.json'
|
|
16
|
+
run: cat ./package.json
|
|
17
|
+
- name: 'Automated Version Bump'
|
|
18
|
+
id: version-bump
|
|
19
|
+
uses: 'phips28/gh-action-bump-version@master'
|
|
20
|
+
with:
|
|
21
|
+
tag-prefix: 'v'
|
|
22
|
+
# env:
|
|
23
|
+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
24
|
+
- name: 'cat package.json'
|
|
25
|
+
run: cat ./package.json
|
|
26
|
+
- name: 'Output Step'
|
|
27
|
+
env:
|
|
28
|
+
NEW_TAG: ${{ steps.version-bump.outputs.newTag }}
|
|
29
|
+
run: echo "new tag $NEW_TAG"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robotical/martyblocks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "MartyBlocks based on Scratch for Marty the Robot by Robotical",
|
|
5
5
|
"main": "README.md",
|
|
6
6
|
"scripts": {
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
"registry": "https://registry.npmjs.org/",
|
|
27
27
|
"access": "public"
|
|
28
28
|
}
|
|
29
|
-
}
|
|
29
|
+
}
|